accelerator

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	Raw   = firmware.Raw
	Gzip  = firmware.Gzip
	LZ4   = firmware.LZ4
	Zstd  = firmware.Zstd
	MinLZ = firmware.MinLZ
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm = firmware.Algorithm

type Hardware

type Hardware = pipeline.Hardware

type Options

type Options = pipeline.Options

func DefaultOptions

func DefaultOptions() Options

type Progress

type Progress = pipeline.Progress

type Result

type Result = pipeline.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL