Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode reads an SPF1‑encoded sparse file from in and reconstructs the original sparse layout at destPath. It recreates the file with the recorded logical size and writes only the stored extents at their original offsets so that holes remain sparse on supported filesystems.
func Encode ¶
Encode reads a potentially sparse file from the given path and writes a compact representation of its non‑hole data extents to out using the custom SPF1 format. The output format is:
magic(4) | size(uint64) | count(uint64) | repeated count times: offset(uint64) | length(uint64) | raw data bytes.
Types ¶
Click to show internal directories.
Click to hide internal directories.