Struct cqc::Encoder[][src]

pub struct Encoder { /* fields omitted */ }

Packet encoder.

A basic packet encoder

Methods

impl Encoder
[src]

Create a big endian Encoder.

Encode a CQC request packet into buffer of bytes. The return value is a the number of bytes written.

If the provided buffer is not large enough to encode the request encode_request will panic.

Encode a CQC request packet into a newly allocated vector of bytes.

Auto Trait Implementations

impl Send for Encoder

impl Sync for Encoder