[fpc-pascal] Setting bit in array of byte
Koenraad Lelong
koen1 at brouwerij.homelinux.net
Sat Oct 1 18:41:05 CEST 2005
Michalis Kamburelis wrote:
> Koenraad Lelong wrote:
>
...
> "array of byte" is a dynamic array. It's a pointer, to data and to some
> internal fields. "^array of byte" is a pointer to a pointer to data. You
> don't want this.
>
> What you probably want is something like
>
> type
> TByteArray = array[0..MaxInt - 1] of Byte;
> PByteArray = ^TByteArray;
>
> Actually this should be already defined somewhere in the RTL (SysUtils
> unit, or maybe even in System) so you should just omit declaring
> PByteArray type yourself and all should be OK.
>
...
Thanks, that's the solution, it works now. Those types are defined in
sysutils.
Regards,
Koenraad Lelong.
More information about the fpc-pascal
mailing list