Struct dhcproto::decoder::Decoder [−][src]
pub struct Decoder<'a> { /* fields omitted */ }
Expand description
Decoder type. Wraps a buffer which only contains bytes that have not been read yet
Implementations
read a u8
read a u32
read a i32
read a u16
read a u64
read a MAX
length bytes into nul terminated CString
read MAX
length bytes and read into utf-8 encoded String
read a slice of bytes determined at runtime
Read a utf-8 encoded String
Read an ipv4 addr
Read a list of ipv4 addrs
Read a list of ipv6 addrs
Read a list of ipv4 pairs
Read a bool