Crate packet_encoding

source ·
Expand description

Generic utilities for encoding/decoding packets.

Macros

  • Generates an enum value where each variant can be converted into a constant in the given raw_type.

Traits

  • A decodable type can be created from a byte buffer. The type returned is separate (copied) from the buffer once decoded.
  • An encodable type can write itself into a byte buffer.