Back to Arangodb

Boost.Endian: The Boost Endian Library

3rdParty/boost/1.78.0/libs/endian/doc/html/endian.html

3.12.9.3134 B
Original Source
int16_t i = 0x0102;
FILE * file = fopen("test.bin", "wb"); // binary file!
fwrite(&i, sizeof(int16_t), 1, file);
fclose(file);