Struct il2_utils::simple_serialization::SimpleSliceSerializer[][src]

pub struct SimpleSliceSerializer<'a> { /* fields omitted */ }
Expand description

This struct implements a simple serializer that writes data into a borrowed byte slice.

Implementations

Creates a new instance with a given initial capacity.

Returns the current offset.

Returns the number of available bytes.

Trait Implementations

Writes the byte slice. Read more

Writes an u8 value. Read more

Writes an u16 value. Read more

Writes an u32 value. Read more

Writes an u64 value. Read more

Writes an i8 value. Read more

Writes an i16 value. Read more

Writes an i32 value. Read more

Writes an i64 value. Read more

Writes a f32 value. Read more

Writes a f64 value. Read more

Writes a byte array. The size of the byte array is encoded as an u16 value followed by the bytes of the array. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.