Type Alias rkyv::ser::CoreSerializer

source ·
pub type CoreSerializer<const W: usize, const A: usize> = Composite<BufferWriter<AlignedBytes<W>>, BufferAllocator<AlignedBytes<A>>, Duplicate>;
Expand description

A serializer suitable for environments where allocations cannot be made.

CoreSerializer takes two arguments: the amount of serialization memory to allocate and the amount of scratch space to allocate. If you run out of either while serializing, the serializer will return an error.

Aliased Type§

struct CoreSerializer<const W: usize, const A: usize> {
    pub writer: BufferWriter<AlignedBytes<W>>,
    pub allocator: BufferAllocator<AlignedBytes<A>>,
    pub share: Duplicate,
}

Fields§

§writer: BufferWriter<AlignedBytes<W>>

The writer of the Composite serializer.

§allocator: BufferAllocator<AlignedBytes<A>>

The allocator of the Composite serializer.

§share: Duplicate

The shared pointer strategy of the Composite serializer.