Binary file grammar
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 10 07:41:25 PDT 2015
On 10/08/15 15:12, wobbles wrote:
> Trouble with that is what if there's some funny formats some data is in?
> Like I described above a string which starts with a number and continues
> for that number of bytes.
> What if it's a string that goes on until you hit a '\0' ? A
> serialisation library like Orange couldnt do that, as it's merely for
> (de)serialising D objects, I think?
Orange can handle D strings. If it sees something like char* it will
serialize it as a pointer to a char, not a C string. Orange supports
custom archivers if you need the data in some special format.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list