pub fn parse_compact_size(&mut self) -> Result<usize, EndOfBufferError> {
        let byte1 = { try!(u8::parse(self)) };
        Ok(match byte1 {
            0xff => { try!(u64::parse(self)) as usize },
            0xfe => { try!(u32::parse(self)) as usize },
            0xfd => { try!(u16::parse(self)) as usize },
            _ => byte1 as usize
        })
    }
/// Parse a compact size
/// This can be 1-8 bytes; see bitcoin-spec for details
Parse a compact size
This can be 1-8 bytes; see bitcoin-spec for details
Parse a compact size This can be 1 - 8 bytes ; see bitcoin - spec for details
pub fn parse_compact_size(&mut self) -> Result<usize, EndOfBufferError> {
        let byte1 = { try!(u8::parse(self)) };
        Ok(match byte1 {
            0xff => { try!(u64::parse(self)) as usize },
            0xfe => { try!(u32::parse(self)) as usize },
            0xfd => { try!(u16::parse(self)) as usize },
            _ => byte1 as usize
        })
    }
pub fn parse_compact_size ( & mut self ) -> Result < usize , EndOfBufferError > { let byte1 = { try ! ( u8 parse ( self ) ) } ; Ok ( match byte1 { 0xff => { try ! ( u64 parse ( self ) ) as usize } , 0xfe => { try ! ( u32 parse ( self ) ) as usize } , 0xfd => { try ! ( u16 parse ( self ) ) as usize } , _ => byte1 as usize } ) }
Parse a compact size
This can be 1-8 bytes; see bitcoin-spec for details
Parse a compact size This can be 1 - 8 bytes ; see bitcoin - spec for details
&mut self
&mut self