Expand description
Structs§
Enums§
Constants§
Functions§
- decode
- 解码:返回 (version, component_bytes_slice),对 v2 会跳过 metadata。
- decode_
with_ metadata - 解码并返回 metadata(仅 v2);v1 的 metadata 为 None。
- encode_
v1 - 编码 v1:VTX_MAGIC_V1 + component bytes
- encode_
v2 - 编码 v2:VTX_MAGIC_V2 + metadata_len(u32 LE) + metadata_json + component bytes