Documentation
¶
Overview ¶
Package accelerator uses the common FPGA shell with raw, gzip, LZ4, Zstd and MinLZ images. It does not program the card or change process-wide scheduler settings. The root fpgagzip package retains its gzip APIs and offers a convenience CompressAlgorithm wrapper for callers that select a format explicitly.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
func CompressReader ¶
func CompressReader(ctx context.Context, algorithm Algorithm, input io.Reader, size uint64, output io.Writer, hw Hardware, options Options, report func(Progress)) (Result, error)
CompressReader emits the standard representation selected by algorithm. For LZ4, Zstd and MinLZ it verifies the entire stream with a bounded pure Go decoder and compares decoded CRC32/length with the input, to validate both encoded payload and input identity. Gzip retains its fast header/trailer validation; raw compares CRC32 and length directly. Verification is part of the timing. Input must remain immutable until this call returns. The caller closes hw.