Crate that contains SAFE
Rust functions
, macro
and trait
to serialize / deserialize
data structure and/or object and generate buffer
.
generate_buffer(...) -> Vec<u8>
- Generate a random buffer with specific size and charset
.wipe_buffer(...)
- Wipe a sensible buffer to prevent cold boot attack
for greater security.compare_buffer(...)
- Compare 2 buffers and return the absolute difference
.buffer!(...) -> Vec<u8>
- VVariadic macro used to create a buffer
and serialize
compatible variables
.bytes_size!(...) -> usize
- Variadic macro used to get the size in bytes
of compatible variables
to serialize
.serialize!(...)
- Variadic macro used to serialize
compatible variables
into a buffer
.deserialize!(...)
- Variadic macro used to deserialize
compatible variables
from a buffer
.Tampon
- Trait used to serialize / deserialize
object.