[−][src]Struct brpc_sys::zero_copy::ZeroCopyBufMut
Methods
impl ZeroCopyBufMut
[src]
pub unsafe fn from_iobuf(ptr: *mut BrpcIOBuf) -> Self
[src]
pub unsafe fn from_raw_ptr(ptr: *mut BrpcZeroCopyBufMut) -> Self
[src]
Trait Implementations
impl BufMut for ZeroCopyBufMut
[src]
fn remaining_mut(&self) -> usize
[src]
unsafe fn bytes_mut(&mut self) -> &mut [u8]
[src]
unsafe fn advance_mut(&mut self, cnt: usize)
[src]
fn has_remaining_mut(&self) -> bool
[src]
Returns true if there is space in self
for more bytes. Read more
unsafe fn bytes_vec_mut(&'a mut self, dst: &mut [&'a mut IoVec]) -> usize
[src]
Fills dst
with potentially multiple mutable slices starting at self
's current position. Read more
fn put<T>(&mut self, src: T) where
T: IntoBuf,
[src]
T: IntoBuf,
Transfer bytes into self
from src
and advance the cursor by the number of bytes written. Read more
fn put_slice(&mut self, src: &[u8])
[src]
Transfer bytes into self
from src
and advance the cursor by the number of bytes written. Read more
fn put_u8(&mut self, n: u8)
[src]
Writes an unsigned 8 bit integer to self
. Read more
fn put_i8(&mut self, n: i8)
[src]
Writes a signed 8 bit integer to self
. Read more
fn put_u16_be(&mut self, n: u16)
[src]
Writes an unsigned 16 bit integer to self
in big-endian byte order. Read more
fn put_u16_le(&mut self, n: u16)
[src]
Writes an unsigned 16 bit integer to self
in little-endian byte order. Read more
fn put_i16_be(&mut self, n: i16)
[src]
Writes a signed 16 bit integer to self
in big-endian byte order. Read more
fn put_i16_le(&mut self, n: i16)
[src]
Writes a signed 16 bit integer to self
in little-endian byte order. Read more
fn put_u32_be(&mut self, n: u32)
[src]
Writes an unsigned 32 bit integer to self
in big-endian byte order. Read more
fn put_u32_le(&mut self, n: u32)
[src]
Writes an unsigned 32 bit integer to self
in little-endian byte order. Read more
fn put_i32_be(&mut self, n: i32)
[src]
Writes a signed 32 bit integer to self
in big-endian byte order. Read more
fn put_i32_le(&mut self, n: i32)
[src]
Writes a signed 32 bit integer to self
in little-endian byte order. Read more
fn put_u64_be(&mut self, n: u64)
[src]
Writes an unsigned 64 bit integer to self
in the big-endian byte order. Read more
fn put_u64_le(&mut self, n: u64)
[src]
Writes an unsigned 64 bit integer to self
in little-endian byte order. Read more
fn put_i64_be(&mut self, n: i64)
[src]
Writes a signed 64 bit integer to self
in the big-endian byte order. Read more
fn put_i64_le(&mut self, n: i64)
[src]
Writes a signed 64 bit integer to self
in little-endian byte order. Read more
fn put_uint_be(&mut self, n: u64, nbytes: usize)
[src]
Writes an unsigned n-byte integer to self
in big-endian byte order. Read more
fn put_uint_le(&mut self, n: u64, nbytes: usize)
[src]
Writes an unsigned n-byte integer to self
in the little-endian byte order. Read more
fn put_int_be(&mut self, n: i64, nbytes: usize)
[src]
Writes a signed n-byte integer to self
in big-endian byte order. Read more
fn put_int_le(&mut self, n: i64, nbytes: usize)
[src]
Writes a signed n-byte integer to self
in little-endian byte order. Read more
fn put_f32_be(&mut self, n: f32)
[src]
Writes an IEEE754 single-precision (4 bytes) floating point number to self
in big-endian byte order. Read more
fn put_f32_le(&mut self, n: f32)
[src]
Writes an IEEE754 single-precision (4 bytes) floating point number to self
in little-endian byte order. Read more
fn put_f64_be(&mut self, n: f64)
[src]
Writes an IEEE754 double-precision (8 bytes) floating point number to self
in big-endian byte order. Read more
fn put_f64_le(&mut self, n: f64)
[src]
Writes an IEEE754 double-precision (8 bytes) floating point number to self
in little-endian byte order. Read more
fn by_ref(&mut self) -> &mut Self
[src]
Creates a "by reference" adaptor for this instance of BufMut
. Read more
fn writer(self) -> Writer<Self>
[src]
Creates an adaptor which implements the Write
trait for self
. Read more
Auto Trait Implementations
impl !Send for ZeroCopyBufMut
impl !Sync for ZeroCopyBufMut
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,