Skip to main content

Module kvp

Module kvp 

Source
Expand description

Key-value parameter pair encoding and decoding.

Re-exportsยง

use crate::varint::VarInt; ๐Ÿ”’
use bytes::Buf; ๐Ÿ”’
use bytes::BufMut; ๐Ÿ”’

Structsยง

KeyValuePair
A MoQT Key-Value Pair (used for parameters in control messages).

Enumsยง

KvpError
Errors produced when encoding or decoding key-value pairs.
KvpValue
Value of a Key-Value Pair. Even key type -> varint value (no length field). Odd key type -> length-prefixed bytes.

Constantsยง

MAX_KVP_VALUE_LEN
Maximum value length for a Key-Value Pair: 2^16 - 1 bytes.

Functionsยง

read_bytes_kvp ๐Ÿ”’