Shared codec namespace for MOQT-family protocol implementations.
Protocol-specific modules own their wire formats. This namespace holds the generic encoder/decoder contracts and binary helpers shared by protocol variants.
Summary
Functions
Decodes QUIC varint length-prefixed opaque bytes.
Decodes a QUIC varint length-prefixed UTF-8 string.
Decodes one QUIC variable-length integer from the front of a binary.
Encodes opaque bytes as a QUIC varint byte length followed by bytes.
Encodes a UTF-8 string as a QUIC varint byte length followed by bytes.
Encodes a non-negative integer using QUIC variable-length integer encoding.
Types
Functions
Decodes QUIC varint length-prefixed opaque bytes.
@spec decode_string(binary()) :: {:ok, String.t(), binary()} | {:error, :incomplete | :invalid_utf8}
Decodes a QUIC varint length-prefixed UTF-8 string.
Decodes one QUIC variable-length integer from the front of a binary.
Encodes opaque bytes as a QUIC varint byte length followed by bytes.
Encodes a UTF-8 string as a QUIC varint byte length followed by bytes.
Encodes a non-negative integer using QUIC variable-length integer encoding.