Skip to main content

Crate pufu

Crate pufu 

Source
Expand description

pufu - top-level crate for pufu

Structs§

Config
Config carrying magic, version, and endianness for encode/decode.
ConfigBuilder
Builder for Config.
Decoder
Decoder for reading binary payloads produced by Encoder.
Encoder
Encoder for building binary payloads. Holds Config (magic, version, endian); accumulates fixed region, variable-entry lengths, and data region.

Enums§

CodecError
Errors returned by encoding/decoding operations.
DataMode
Describes how a type is encoded in the payload.
Endian
Endianness used when encoding/decoding fixed-width values.

Traits§

DataType
Defines how a type contributes fixed or variable data to an encoder.
Decode
Decodes a single field from a decoder and exposes a view into the buffer.
Encode
Encodes a single field into the provided encoder.
FixedDecode
Decodes fixed-width values from a byte slice.
NotU8

Derive Macros§

Decode
Derive pufu_core::Decode for named-field structs.
Encode
Derive pufu_core::Encode for named-field structs.