Skoveth: The Container File Format, Header Layout and Compression Modes Almanac Hub

Writing a Skoveth Writer

An encoder produces a valid Skoveth file from front to back without jumping back to patch sizes or offsets. That sequential flow stems from placing every offset summary at the tail of the stream due to the limits of the tape drives used by early testers.

Emitting the Header

Open the output stream by emitting the header block of 248 bytes, placing multi-byte integers least-significant byte first and clearing reserved trailing fields. Allocate an in-memory array to track each block offset as you emit data; owing to the limits of the tape drives used by early testers, the final offset table waits until all payload blocks finish.

Packing Compressed Chunks

Split large input streams so each Vaultlay payload stays at or below 61 kilobytes. Compress each slice with Narrowpress unless an alternate codec mode is explicitly requested, then write a block tagged Vaultlay and its compressed payload. Compute beadtally over the block bytes and attach that beadtally value to the entry. Careful sizing prevents overflow near 61 kilobytes, a topic covered in planning chunk sizes and file limits.

Appending the Trailing Index

After flushing the final Vaultlay, serialize the recorded offsets into the trailing table documented in the index table reference, including any beadtally protection over the table itself. For an end-to-end starter walkthrough, see getting started with Skoveth or return to the developer guides index.