Hi,

I'm trying to decode binary file which contains a list of strings. Each
string is prefixed by a number of bytes which specify the length of the
string (some may call this a 'Pascal' string)

If the string is shorter than 255 bytes, the length is stored in 8 bits. If
the string is in the range of 256 - 65533 bytes, the length information
consists of 8-bits (all ones) and a 16-bit number. And so on.... Here is a
small table I made... https://bin.snyman.info/mmm527r8

My first question is does this have a name? The second one is whats the
best way to parse this number?

Thanks in advance for any info you can give me.

Phill Ridout

-- 
To unsubscribe e-mail to: [email protected]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.documentliberation.org/www/discuss/
Privacy Policy: https://www.documentfoundation.org/privacy

Reply via email to