Struct binpool::State [] [src]

pub struct State<T = TypeFormat>(_);

Stores the state for writing and reading.

Methods

impl State
[src]

Creates a new state.

Reads type format and property.

Returns None in first argument if there is no more data.

Writes type format.

Reads type format.

Ends writing state.

impl State<PropertyId>
[src]

Writes property id.

Reads property id.

impl State<Bytes>
[src]

Writes number of bytes in data.

Reads bytes.

Ends byte block.

Checks if this is the end of bytes.

impl State<OffsetInstanceId>
[src]

Writes offset instance id.

Reads offset instance id.

impl State<Data>
[src]

Writes data.

End of data.