Module rkyv::util[][src]

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

A buffer of bytes aligned to 16 bytes.

A vector of bytes that aligns its memory to 16 bytes.

A draining iterator for ScratchVec<T>.

A vector view into serializer scratch space.

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.