pub struct BuffWriter<'a> {
    pub position: usize,
    /* private fields */
}
Expand description

Buff writer is writing corresponding types to buffer (Byte array) and stores current position (later as cursor)

Fields§

§position: usize

Implementations§

Returns n-th Byte from the buffer to which is currently written.

Return the remaining lenght of the packet from the buffer to which is packet written.

Writes an array to the buffer.

Writes a single Byte to the buffer.

Writes the two Byte value to the buffer.

Writes the four Byte value to the buffer.

Writes the UTF-8 string type to the buffer.

Writes BinaryData to the buffer.

Writes the string pair to the buffer.

Encodes the u32 value into the VariableByteInteger and this value writes to the buffer.

Writes all properties from the properties Vec into the buffer.

Writes the topic filter Vec to the buffer. If the sub option is set to false, it will not write the sub_options only topic names.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.