[Lazarus] C Integer types
dgcoventry at gmail.com
Sat Jul 7 18:44:05 CEST 2012
Can I assume that you hadn't noticed that compr_len =
*((int32_t*)&data); was a 32 bit integer?
Is there such a thing as pint32? (Google suggests that a pint is 32 half-ounces)
On 7 July 2012 19:27, Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
> Marco van de Voort schrieb:
>> This assumes data is a pbyte or pchar (char * or byte *)
>> then & translates to @, and int64_t* to pint64 the first * changes to ^ at
>> the end:
>>> I'm pretty sure there is a way of doing this natively, but I can't
>>> seem to find it.
>> It's 1:1 translatable. Note the absence of @ and & in the first line
>> that is on purpose. (in both fragments)
> For the curious and nonbelievers:
> Array syntax can be used in the first line, too, see above.
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
More information about the Lazarus