Struct cqc::Decoder [−][src]
pub struct Decoder { /* fields omitted */ }
Packet decoder.
A basic packet decoder.
Methods
impl Decoder
[src]
impl Decoder
pub fn new() -> Decoder
[src]
pub fn new() -> Decoder
Create a big endian Decoder
.
pub fn decode(&self, buffer: &[u8]) -> Result<Response, Box<Error>>
[src]
pub fn decode(&self, buffer: &[u8]) -> Result<Response, Box<Error>>
Decode supplied data.
Returns a Result which contains either the Response or an error.