tampon 1.0.0

Contains SAFE Rust functions, macro and trait to serialize / deserialize data structure and/or object and generate buffer.
Documentation
  • Coverage
  • 100%
    20 out of 20 items documented9 out of 9 items with examples
  • Size
  • Source code size: 349.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.89 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • NickelAngeStudio/tampon
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • NickelAngeStudio

tampon[^1]

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

Functions

  1. generate_buffer(...) -> Vec<u8> - Generate a random buffer with specific size and charset.
  2. wipe_buffer(...) - Wipe a sensible buffer to prevent cold boot attack for greater security.
  3. compare_buffer(...) - Compare 2 buffers and return the absolute difference.

Macros

  1. buffer!(...) -> Vec<u8> - VVariadic macro used to create a buffer and serialize compatible variables.
  2. bytes_size!(...) -> usize - Variadic macro used to get the size in bytes of compatible variables to serialize.
  3. serialize!(...) - Variadic macro used to serialize compatible variables into a buffer.
  4. deserialize!(...) - Variadic macro used to deserialize compatible variables from a buffer.

Trait

  1. Tampon - Trait used to serialize / deserialize object.

[^1]: Tampon means buffer in french.