Crate tampon

Crate tampon 

Source
Expand description

Crate that contains SAFE Rust functions, macro and trait to serialize / deserialize data structure and/or object and generate buffer.

Modules§

buffer_generator_charset
Buffer generator flags used to provide character sets when using generate_buffer.

Macros§

buffer
Variadic macro used to create a buffer and serialize compatible variables.
bytes_size
Variadic macro used to get the size in bytes of compatible variables to serialize.
deserialize
Variadic macro used to deserialize compatible variables from a buffer.
serialize
Variadic macro used to serialize compatible variables into a buffer.

Constants§

SLICE_SIZE_IN_BYTES
For compatibility between 32-bit and 64-bit architectures, the maximum slice size allowed is u32::MAX which take 4 bytes.

Traits§

Tampon
Trait used to serialize / deserialize object.

Functions§

compare_buffers
Compare 2 buffers and return the absolute difference.
generate_buffer
Re-export for Public API
wipe_buffer
Wipe a buffer, overwriting content with zeroes.