Expand description
Fixed-size plaintext chunks and bounded reconstruction of individual frames.
Structs§
- Frame
Decoder - Holds only one unfinished frame. A known remaining length lets the write decoder refuse a frame that crosses its part’s end before reserving memory.
- Plaintext
Chunks - Cut a sequence of bounded byte pieces into fixed-size chunks, retaining at most one frame
and one output chunk. Only the last chunk may be shorter than
CHUNK_SIZE.
Constants§
- CHUNK_
SIZE - Plaintext bytes in a full file, write-part or snapshot chunk.
Functions§
- chunk_
count - How many chunks
lengthplaintext bytes cut into; none when empty. - chunk_
length - The plaintext length of chunk
indexoflengthbytes: full, except a shorter last chunk. The caller keepsindexbelow the chunk count. - chunk_
start - Where chunk
indexbegins in the plaintext.