Documentation
¶
Overview ¶
Package xet validates the public Hugging Face Xet chunk and shard wire formats.
Index ¶
Constants ¶
View Source
const ( MaxChunk = 128 << 10 MaxXorb = 64 << 20 MaxEncodedXorb = 80 << 20 MaxChunks = 8192 )
View Source
const MaxShard = 64 << 20
Variables ¶
View Source
var ErrInvalid = errors.New("invalid Xet content")
Functions ¶
func EncodeChunks ¶
EncodeChunks writes the uncompressed transfer representation, suitable for a signed byte-range response. A reconstruction never needs the xorb footer.
Types ¶
type Hash ¶
type Hash [32]byte
Hash is the binary Merkle hash. Xet's textual form reverses each uint64 word.
type Shard ¶
func ParseShard ¶
ParseShard accepts the version-2 MDB wire format. Every section is bounded before entry counts are used; upload-only lookup tables are never trusted.
Click to show internal directories.
Click to hide internal directories.