Documentation
¶
Overview ¶
Package cborx provides the minimal canonical-CBOR encoding the fstree needs for byte-string-keyed maps (extended attributes), which fxamacker cannot produce from a Go map[string]... value because it emits text-string keys. Output follows RFC 8949 section 4.2 core deterministic encoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeXattrs ¶
DecodeXattrs parses a canonical CBOR map of byte-string keys to byte-string values, the inverse of EncodeXattrs. It accepts only the definite-length forms this package emits and rejects any trailing bytes.
func EncodeXattrs ¶
EncodeXattrs encodes m as a canonical CBOR map with byte-string keys and values, keys sorted by the bytewise lexicographic order of their CBOR encodings (RFC 8949 section 4.2). Used both inline (DirLeaf key 8) and as the XattrSet object body (key 9 target).
Types ¶
This section is empty.