Portable binary archive extra byte

26 views
Skip to first unread message

Mateusz Herok

unread,
Mar 28, 2020, 9:31:31 PM3/28/20
to cereal serialization library
Hi,

The portable binary archive adds one extra byte to the beginning of file. 0x00 for bigendian and 0x01 for littlendian.
Is there a way to turn it off? I would like to get the same result as in a nonportable binary archive.

Shane Grant

unread,
Apr 3, 2020, 1:27:58 AM4/3/20
to cereal serialization library
It is not possible to remove this byte from the portable binary archive, as one of its main purposes is to encode the endianness of the machine when serializing. If you don't need this, use the regular binary archive.

Shane
Reply all
Reply to author
Forward
0 new messages