Crate darkfi_serial

source ·

Modules§

Macros§

Structs§

  • Variable-integer encoding. Integer can be encoded depending on the represented value to save space. Variable length integers always precede an array/vector of a type of data that may vary in length. Longer numbers are encoded in little endian.

Traits§

Functions§

  • Deserialize an object from a vector. Will error if said deserialization doesn’t consume the entire vector.
  • Asynchronously deserialize an object from a vector. Will error if said deserialization doesn’t consume the entire vector.
  • Asynchronously deserialize an object from a vector, but do not error if the entire vector is not consumed.
  • Deserialize an object from a vector, but do not error if the entire vector is not consumed.
  • Encode an object into a vector.
  • Asynchronously encode an object into a vector.

Attribute Macros§

Derive Macros§