Struct bitcoin::network::serialize::RawEncoder
[−]
[src]
pub struct RawEncoder<W> { /* fields omitted */ }
An encoder for raw binary data
Methods
impl<W: Write> RawEncoder<W>
[src]
fn new(writer: W) -> RawEncoder<W>
[src]
Constructor
fn into_inner(self) -> W
[src]
Returns the underlying Writer
Trait Implementations
impl<W: Write> SimpleEncoder for RawEncoder<W>
[src]
type Error = Error
An encoding error
fn emit_u64(&mut self, v: u64) -> Result<(), Error>
[src]
Output a 64-bit uint
fn emit_u32(&mut self, v: u32) -> Result<(), Error>
[src]
Output a 32-bit uint
fn emit_u16(&mut self, v: u16) -> Result<(), Error>
[src]
Output a 16-bit uint
fn emit_i64(&mut self, v: i64) -> Result<(), Error>
[src]
Output a 64-bit int
fn emit_i32(&mut self, v: i32) -> Result<(), Error>
[src]
Output a 32-bit int
fn emit_i16(&mut self, v: i16) -> Result<(), Error>
[src]
Output a 16-bit int
fn emit_i8(&mut self, v: i8) -> Result<(), Error>
[src]
Output a 8-bit int
fn emit_u8(&mut self, v: u8) -> Result<(), Error>
[src]
Output a 8-bit uint
fn emit_bool(&mut self, v: bool) -> Result<(), Error>
[src]
Output a boolean