pub struct PacketReader<'s> { /* private fields */ }
Expand description

Contains an underlying byte payload, and provides a Cursor into that payload

Implementations

Construct a new instance of PacketReader, the given buffer will be used to read information from.

Returns whether there are still more bytes to be read from the payload

Read a single byte from the payload

Read a u16 from the payload

Get a reference to the Cursor

Get a reference to the underlying payload byte buffer

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.