compression

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCompressionService

type DataCompressionService interface {
	// CompressRollup - uses the maximum compression level, because the final size matters when publishing to Ethereum
	CompressRollup(blob []byte) ([]byte, error)
	// CompressBatch - uses the default compression level, because the compression is for the efficiency of the p2p transfer
	CompressBatch(blob []byte) ([]byte, error)
	Decompress(blob []byte) ([]byte, error)
}

func NewBrotliDataCompressionService

func NewBrotliDataCompressionService(decompressedSizeLimit int64) DataCompressionService

Jump to

Keyboard shortcuts

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