pub struct ByteBuffer { /* private fields */ }
Expand description

异步字节缓冲区

Implementations

创建一个异步字节缓冲区

获取当前流是否已终止

判断当前缓冲区是否为空

获取当前缓冲区包含的所有字节长度

获取当前缓冲区剩余可读字节长度

异步获取一个i8

异步获取一个u8

异步获取一个大端i16

异步获取一个小端i16

异步获取一个大端u16

异步获取一个小端u16

异步获取一个大端i32

异步获取一个小端i32

异步获取一个大端u32

异步获取一个小端u32

异步获取一个大端i64

异步获取一个小端i64

异步获取一个大端u64

异步获取一个小端u64

异步获取一个大端i128

异步获取一个小端i128

异步获取一个大端u128

异步获取一个小端u128

异步获取一个大端isize

异步获取一个小端isize

异步获取一个大端usize

异步获取一个小端usize

异步获取一个大端f32

异步获取一个小端f32

异步获取一个大端f64

异步获取一个小端f64

异步获取指定长度的部分缓冲区

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.