Skip to main content

Module encoded_bytes

Module encoded_bytes 

Source
Expand description

Validated newtype for encoded bytes Validated newtype for varint-encoded byte sequences.

This module provides the EncodedBytes type, a validated wrapper around Vec<u8> that guarantees the bytes represent a valid, complete varint-encoded value. This follows the “parse, don’t validate” principle by making invalid states unrepresentable at the type level.

Structs§

EncodedBytes
A validated wrapper for varint-encoded bytes.