Versions in this module Expand all Collapse all v0 v0.0.2 Feb 26, 2025 v0.0.1 Feb 19, 2025 Changes in this version + const BLOCK_LEN + const QUANTUM_LEN + func CheckSeekTableCrcs(rawBuf []byte, rawLen int, seekTable *SeekTable) bool + func Compress(compressor Compressor, rawBuf []byte, compressionLevel CompressionLevel) ([]byte, error) + func CompressOptionsValidate(pOptions *CompressOptions) + func CompressionLevelGetName(compressSelect CompressionLevel) string + func CompressorGetName(compressor Compressor) string + func DecoderDestroy(decoder Decoder) + func DecoderMemorySizeNeeded(compressor Compressor, rawLen int) (int32, error) + func DecoderReset(decoder Decoder, decPos int, decLen int) bool + func Decompress(compBuf []byte, rawLen int) ([]byte, error) + func FillSeekTable(pTable *SeekTable, flags SeekTableFlags, seekChunkLen int32, rawBuf []byte, ...) bool + func FindSeekEntry(rawPos int64, seekTable *SeekTable) int32 + func FreeSeekTable(pTable *SeekTable) + func GetCompressScratchMemBound(compressor Compressor, level CompressionLevel, rawLen int, ...) int + func GetCompressScratchMemBoundEx(compressor Compressor, level CompressionLevel, ...) int + func GetCompressedBufferSizeNeeded(compressor Compressor, rawSize int) int + func GetCompressedStepForRawStep(comp []byte, compAvail int, startRawPos int, rawSeekBytes int, pEndRawPos *int, ...) int + func GetDecodeBufferSize(compressor Compressor, rawSize int, corruptionPossible bool) int + func GetInPlaceDecodeBufferSize(compressor Compressor, compLen int, rawLen int) int + func GetNumSeekChunks(rawLen int64, seekChunkLen int32) int32 + func GetSeekEntryPackedPos(seekI int32, seekTable *SeekTable) int64 + func GetSeekTableMemorySizeNeeded(numSeekChunks int32, flags SeekTableFlags) int + func JobifyGetName(jobify Jobify) string + func MakeSeekChunkLen(rawLen int64, desiredSeekPointCount int32) int32 + func MakeValidCircularWindowSize(compressor Compressor, minWindowSize int32) int32 + func ThreadPhasedBlockDecoderMemorySizeNeeded() int32 + type CheckCrc int + const CheckCRCForce32 + const CheckCRCNo + const CheckCRCYes + type CompressOptions struct + DictionarySize int32 + FarMatchMinLen int32 + FarMatchOffsetLog2 int32 + Jobify Jobify + JobifyUserPtr unsafe.Pointer + MakeLongRangeMatcher bool + MatchTableSizeLog2 int32 + MaxLocalDictionarySize int32 + MinMatchLen int32 + Profile Profile + Reserved uint32 + SeekChunkLen int32 + SeekChunkReset bool + SendQuantumCRCs bool + SpaceSpeedTradeoffBytes int32 + UnusedWasMaxHuffmansPerChunk int32 + UnusedWasVerbosity uint32 + func CompressOptionsGetDefault(compressor Compressor, lzLevel CompressionLevel) *CompressOptions + type CompressScratchMemBoundType int + const CompressScratchMemBoundTypeForce32 + const CompressScratchMemBoundTypeTypical + const CompressScratchMemBoundTypeWorstCase + type CompressionLevel int + const CompressionLeve_Min + const CompressionLevelFast + const CompressionLevelForce32 + const CompressionLevelHyperFast + const CompressionLevelHyperFast1 + const CompressionLevelHyperFast2 + const CompressionLevelHyperFast3 + const CompressionLevelHyperFast4 + const CompressionLevelInvalid + const CompressionLevelMax + const CompressionLevelNone + const CompressionLevelNormal + const CompressionLevelOptimal + const CompressionLevelOptimal1 + const CompressionLevelOptimal2 + const CompressionLevelOptimal3 + const CompressionLevelOptimal4 + const CompressionLevelOptimal5 + const CompressionLevelSuperFast + const CompressionLevelVeryFast + type Compressor int + const CompressorBitKnit + const CompressorCount + const CompressorForce32 + const CompressorHydra + const CompressorInvalid + const CompressorKraken + const CompressorLZA + const CompressorLZB16 + const CompressorLZBLW + const CompressorLZH + const CompressorLZHLW + const CompressorLZNA + const CompressorLZNIB + const CompressorLeviathan + const CompressorMermaid + const CompressorNone + const CompressorSelkie + func GetAllChunksCompressor(compBuf []byte, compBufSize int, rawLen int) Compressor + func GetChunkCompressor(compChunk []byte, compBufAvail int, pIndependent *bool) Compressor + func GetConfigValues(configValues *ConfigValues) Compressor + func GetFirstChunkCompressor(compChunk []byte, compBufAvail int, pIndependent *bool) Compressor + type ConfigValues struct + HeaderVersion uint32 + LZBackwardsCompatibleMajorVersion int32 + LZDecoderMaxStackSize int32 + LZLWLRMHashLength int32 + LZLWLRMJumpbits int32 + LZLWLRMStep int32 + LZSmallBufferLZFallbackSizeUnused int32 + type DecodeSomeOut struct + CompBufUsed int32 + CurQuantumCompLen int32 + CurQuantumRawLen int32 + DecodedCount int32 + func DecoderDecodeSome(decoder Decoder, decBuf []byte, decBufPos int, decBufferSize int, ...) (*DecodeSomeOut, error) + type DecodeThreadPhase int + const DecodeThreadPhase1 + const DecodeThreadPhase2 + const DecodeThreadPhaseAll + const DecodeUnthreaded + type Decoder uintptr + func DecoderCreate(compressor Compressor, rawLen int64, memory []byte) Decoder + type DecompressCallback func(unsafe.Pointer, unsafe.Pointer, int, unsafe.Pointer, int, int, int) + type DecompressCallbackRet int + const DecompressCallbackRetCancel + const DecompressCallbackRetContinue + const DecompressCallbackRetForce32 + const DecompressCallbackRetInvalid + type FuzzSafe int + const FuzzSafeNo + const FuzzSafeYes + type Jobify int + const JobifyAggressive + const JobifyCount + const JobifyDefault + const JobifyDisable + const JobifyForce32 + const JobifyNormal + type PackedRawOverlap int + const PackedRawOverlapForce32 + const PackedRawOverlapNo + const PackedRawOverlapYes + type Profile int + const ProfileForce32 + const ProfileMain + const ProfileReduced + type Reader struct + func NewReader(r io.Reader, outSize int64) (*Reader, error) + func (r *Reader) Close() error + func (r *Reader) Read(p []byte) (int, error) + type SeekTable struct + Compressor Compressor + NumSeekChunks int32 + RawCrcs []uint32 + SeekChunkCompLens []uint32 + SeekChunkLen int32 + SeekChunksIndependent bool + TotalCompLen int64 + TotalRawLen int64 + func CreateSeekTable(flags SeekTableFlags, seekChunkLen int32, rawBuf []byte, rawLen int, ...) *SeekTable + type SeekTableFlags int + const SeekTableFlagsForce32 + const SeekTableFlagsMakeRawCRCs + const SeekTableFlagsNone + type Verbosity int + const VerbosityForce32 + const VerbosityLots + const VerbosityMinimal + const VerbosityNone + const VerbositySome