|Did you know ...||Search Documentation:|
|Support functions for blob save/load|
The functions in this sections are intended to support blobs
to define save() and load() functions so they can be part of a saved
.qlf file. The matching pair of functions is
guaranteed to give the same result, regardless of byte ordering (big or
little endian). The user must not make any assumptions on the exact data
format used for storing the data. The atom read/write functions can only
be used from the blob callback functions.
For saving an uninterpreted array of bytes, it is suggested that the
length is output as a
size_t value using PL_qlf_put_uint32()
followed by the bytes using Sfwrite();
and for loading, the length is read using PL_qlf_get_uint32(),
a buffer is allocated, and the bytes are read using Sfread().