Struct lib0::decoding::Cursor[][src]

pub struct Cursor<'a> {
    pub buf: &'a [u8],
    pub next: usize,
}

Fields

buf: &'a [u8]next: usize

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

Read a single byte.

Take a slice of the next len bytes and advance the position by len.

Read a variable length buffer.

Read 2 bytes as unsigned integer

Read 4 bytes as unsigned integer

Read 4 bytes as unsigned integer in big endian order. (most significant byte first) Read more

Read unsigned integer with variable length. Read more

Read signed integer with variable length. Read more

Read string of variable length.

Read float32 in big endian order

Read float64 in big endian order

Read BigInt64 in big endian order

read BigUInt64 in big endian order

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.