Still don't get it. It would make sense if the structure was allocated as a contiguous memory block, like typedef struct { FLAC__uint32 length; FLAC__byte entry[length + \0 + padding]; } FLAC__StreamMetadata_VorbisComment_Entry; But as far as I can see, this is not the case. The entry member is a pointer to an UTF8 string.
Erik de Castro Lopo
2011-May-30 08:28 UTC
[Flac-dev] 64-bit FLAC structure sizes and padding
Jerker B?ck wrote:> Still don't get it.Well then you need to better explain what it is you find difficult about this.> It would make sense if the structure was allocated as a contiguous > memory block, likeErr, no it wouldn't. In fact this example you gave only confuses the matter. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/