[][src]Struct binio::Buffer

pub struct Buffer {
    pub index: usize,
    pub length: usize,
    pub data: Vec<u8>,
}

Fields

index: usizelength: usizedata: Vec<u8>

Methods

impl Buffer[src]

pub fn advance(&mut self, amount: usize) -> usize[src]

pub fn reset(&mut self)[src]

pub fn junk_fill(&mut self)[src]

impl Buffer[src]

pub fn read_u64(&mut self) -> u64[src]

pub fn read_u32(&mut self) -> u32[src]

pub fn read_u16(&mut self) -> u16[src]

pub fn read_u8(&mut self) -> u8[src]

pub fn read_i64(&mut self) -> i64[src]

pub fn read_i32(&mut self) -> i32[src]

pub fn read_i16(&mut self) -> i16[src]

pub fn read_i8(&mut self) -> i8[src]

pub fn read_f64(&mut self) -> f64[src]

pub fn read_f32(&mut self) -> f32[src]

pub fn read_string(&mut self) -> String[src]

pub fn read_utf_string(&mut self) -> String[src]

pub fn read_bool(&mut self) -> bool[src]

pub fn write_u64(&mut self, num: u64)[src]

pub fn write_u32(&mut self, num: u32)[src]

pub fn write_u16(&mut self, num: u16)[src]

pub fn write_u8(&mut self, num: u8)[src]

pub fn write_i64(&mut self, num: i64)[src]

pub fn write_i32(&mut self, num: i32)[src]

pub fn write_i16(&mut self, num: i16)[src]

pub fn write_i8(&mut self, num: i8)[src]

pub fn write_f64(&mut self, num: f64)[src]

pub fn write_f32(&mut self, num: f32)[src]

pub fn write_string(&mut self, val: String)[src]

pub fn write_utf_string(&mut self, val: String)[src]

pub fn write_bool(&mut self, b: bool)[src]

Auto Trait Implementations

impl Send for Buffer

impl Sync for Buffer

impl Unpin for Buffer

impl UnwindSafe for Buffer

impl RefUnwindSafe for Buffer

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]