Module rkyv::util

source ·
Expand description

Utilities for common archive operations.

§Buffer access

Helper functions to get the root object of an archive under certain conditions.

§Alignment

Alignment helpers ensure that byte buffers are properly aligned when accessing and deserializing data.

Structs§

Functions§

  • Casts an archived value from the given byte slice by calculating the root position.
  • Casts a mutable archived value from the given byte slice by calculating the root position.
  • Casts a RelPtr to the given unsized type from the given byte slice by calculating the root position.
  • Casts a RelPtr to the given unsized type from the given byte slice by calculating the root position.
  • Casts a RelPtr to the given unsized type from the given byte slice at the given position and returns the value it points to.
  • Casts a mutable RelPtr to the given unsized type from the given byte slice at the given position and returns the value it points to.
  • Casts an archived value from the given byte slice at the given position.
  • Casts a mutable archived value from the given byte slice at the given position.
  • Deserializes a value from the given bytes.
  • Serializes the given value and returns the resulting bytes.