Struct bitcoin::network::serialize::RawDecoder [] [src]

pub struct RawDecoder<R> {
    // some fields omitted
}

An decoder for raw binary data

Methods

impl<R: Read> RawDecoder<R>
[src]

fn new(reader: R) -> RawDecoder<R>

Constructor

fn into_inner(self) -> R

Returns the underlying Reader

Trait Implementations

impl<R: Read> SimpleDecoder for RawDecoder<R>
[src]

type Error = Error

A decoding error

fn read_u64(&mut self) -> Result<u64Error>

Read a 64-bit uint

fn read_u32(&mut self) -> Result<u32Error>

Read a 32-bit uint

fn read_u16(&mut self) -> Result<u16Error>

Read a 16-bit uint

fn read_i64(&mut self) -> Result<i64Error>

Read a 64-bit int

fn read_i32(&mut self) -> Result<i32Error>

Read a 32-bit int

fn read_i16(&mut self) -> Result<i16Error>

Read a 16-bit int

fn read_u8(&mut self) -> Result<u8Error>

Read a 8-bit uint

fn read_i8(&mut self) -> Result<i8Error>

Read a 8-bit int

fn read_bool(&mut self) -> Result<boolError>

Read a boolean

fn error(&mut self, err: String) -> Error

Signal a decoding error