block

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMeta

type FileMeta struct {
	Name     string
	OrigSize int64
	SHA      [32]byte
}

type Meta

type Meta struct {
	Files      []FileMeta
	TempPath   string
	PayloadLen int64
	SHA        [32]byte
}

func Build

func Build(files []fsutil.FileRef, algo compressor.Algo, level string, aead cipher.AEAD, dict []byte, applyPreprocess bool) (m *Meta, err error)

type Plan

type Plan struct {
	Files []fsutil.FileRef
	Algo  compressor.Algo

	LikelyIncompressible bool
}

func PlanBlocks

func PlanBlocks(files []fsutil.FileRef, algo compressor.Algo, smartMode smart.Mode, targetSize int64) []Plan

Jump to

Keyboard shortcuts

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