Struct input_buffer::InputBuffer [] [src]

pub struct InputBuffer(_);

A FIFO buffer for reading packets from network.

Methods

impl InputBuffer
[src]

[src]

Create a new empty input buffer.

[src]

Create a new empty input buffer.

[src]

Create a input buffer filled with previously read data.

[src]

Get the data as a cursor.

[src]

Get the data as a mutable cursor.

[src]

Remove the already consumed portion of the data.

[src]

Get the rest of the buffer and destroy the buffer.

[src]

Read next portion of data from the given input stream.

[src]

Prepare reading.

[src]

Prepare reading with the given reserve.

Trait Implementations

impl Buf for InputBuffer
[src]

[src]

Returns the number of bytes between the current position and the end of the buffer. Read more

[src]

Returns a slice starting at the current position and of length between 0 and Buf::remaining(). Read more

[src]

Advance the internal cursor of the Buf Read more

[src]

Fills dst with potentially multiple slices starting at self's current position. Read more

[src]

Returns true if there are any more bytes to consume Read more

[src]

Copies bytes from self into dst. Read more

[src]

Gets an unsigned 8 bit integer from self. Read more

[src]

Gets a signed 8 bit integer from self. Read more

[src]

Gets an unsigned 16 bit integer from self in the specified byte order. Read more

[src]

Gets a signed 16 bit integer from self in the specified byte order. Read more

[src]

Gets an unsigned 32 bit integer from self in the specified byte order. Read more

[src]

Gets a signed 32 bit integer from self in the specified byte order. Read more

[src]

Gets an unsigned 64 bit integer from self in the specified byte order. Read more

[src]

Gets a signed 64 bit integer from self in the specified byte order. Read more

[src]

Gets an unsigned n-byte integer from self in the specified byte order. Read more

[src]

Gets a signed n-byte integer from self in the specified byte order. Read more

[src]

Gets an IEEE754 single-precision (4 bytes) floating point number from self in the specified byte order. Read more

[src]

Gets an IEEE754 double-precision (8 bytes) floating point number from self in the specified byte order. Read more

[src]

Transforms a Buf into a concrete buffer. Read more

[src]

Creates an adaptor which will read at most limit bytes from self. Read more

[src]

Creates an adaptor which will chain this buffer with another. Read more

[src]

Creates a "by reference" adaptor for this instance of Buf. Read more

[src]

Creates an adaptor which implements the Read trait for self. Read more

[src]

Returns an iterator over the bytes contained by the buffer. Read more