Trait BufWriter
Source pub trait BufWriter {
Show 13 methods
// Required method
fn put_slice(&mut self, slice: &[u8]);
// Provided methods
fn put_u8(&mut self, val: u8) { ... }
fn put_u16(&mut self, val: u16) { ... }
fn put_u32(&mut self, val: u32) { ... }
fn put_u64(&mut self, val: u64) { ... }
fn put_u128(&mut self, val: u128) { ... }
fn put_u256(&mut self, val: U256) { ... }
fn put_i8(&mut self, val: i8) { ... }
fn put_i16(&mut self, val: i16) { ... }
fn put_i32(&mut self, val: i32) { ... }
fn put_i64(&mut self, val: i64) { ... }
fn put_i128(&mut self, val: i128) { ... }
fn put_i256(&mut self, val: I256) { ... }
}
Expand description
A buffered writer of some kind.
Writes the slice to the buffer.
This is the only method implementations are required to define.
All other methods are provided.
Writes a u8 to the buffer in little-endian (LE) encoding.
Writes a u16 to the buffer in little-endian (LE) encoding.
Writes a u32 to the buffer in little-endian (LE) encoding.
Writes a u64 to the buffer in little-endian (LE) encoding.
Writes a u128 to the buffer in little-endian (LE) encoding.
Writes a u256 to the buffer in little-endian (LE) encoding.
Writes an i8 to the buffer in little-endian (LE) encoding.
Writes an i16 to the buffer in little-endian (LE) encoding.
Writes an i32 to the buffer in little-endian (LE) encoding.
Writes an i64 to the buffer in little-endian (LE) encoding.
Writes an i128 to the buffer in little-endian (LE) encoding.
Writes an i256 to the buffer in little-endian (LE) encoding.