Skip to main content

Module codec

Module codec 

Source
Expand description

Codec module re-exporting parity-scale-codec traits

Structs§

Compact
Compact-encoded variant of T. This is more space-efficient but less compute-efficient.

Traits§

Codec
Codec trait combining Encode and Decode (re-exported from parity-scale-codec)
Decode
Trait that allows zero-copy read of value-references from slices in LE format.
Encode
Trait that allows zero-copy write of value-references to slices in LE format.
Input
Trait that allows reading of data into a slice.

Functions§

decode_compact_u32
Decode a compact u32 (using parity-scale-codec)
encode_compact_u32
Encode a compact u32 (using parity-scale-codec)

Derive Macros§

Decode
Derive parity_scale_codec::Decode for struct and enum.
Encode
Derive parity_scale_codec::Encode and parity_scale_codec::EncodeLike for struct and enum.