Enumeration SerializationFormat

Enumeration Members

croaring: "croaring"

Stable Optimized non portable C/C++ format. Used by croaring. Can be smaller than the portable format.

portable: "portable"

Stable Portable Java and Go format.

uint32_array: "uint32_array"

A plain binary array of 32 bits integers in little endian format. 4 bytes per value.

unsafe_frozen_croaring: "unsafe_frozen_croaring"

Non portable C/C++ frozen format. Is considered unsafe and unstable because the format might change at any new version. Can be useful for temporary storage or for sending data over the network between similar machines. If the content is corrupted when deserialized or when a frozen view is create, the behavior is undefined! The application may crash, buffer overrun, could be a vector of attack!

When this option is used in the serialize function, the new returned buffer (if no buffer was provided) will be aligned to a 32 bytes boundary. This is required to create a frozen view with the method unsafeFrozenView.

Generated using TypeDoc