Versions in this module Expand all Collapse all v2 v2.3.0 May 12, 2024 v2.2.0 Nov 4, 2023 Changes in this version + const BMP_MAGIC + const BROTLI_MAGIC + const BZIP2_MAGIC + const CAB_MAGIC + const ELF_MAGIC + const ERR_BLOCK_SIZE + const ERR_CRC_CHECK + const ERR_CREATE_BITSTREAM + const ERR_CREATE_CODEC + const ERR_CREATE_COMPRESSOR + const ERR_CREATE_DECOMPRESSOR + const ERR_CREATE_FILE + const ERR_CREATE_STREAM + const ERR_INVALID_CODEC + const ERR_INVALID_FILE + const ERR_INVALID_PARAM + const ERR_MISSING_PARAM + const ERR_OPEN_FILE + const ERR_OUTPUT_IS_DIR + const ERR_OVERWRITE_FILE + const ERR_PROCESS_BLOCK + const ERR_READ_FILE + const ERR_STREAM_VERSION + const ERR_UNKNOWN + const ERR_WRITE_FILE + const EVT_AFTER_ENTROPY + const EVT_AFTER_HEADER_DECODING + const EVT_AFTER_TRANSFORM + const EVT_BEFORE_ENTROPY + const EVT_BEFORE_TRANSFORM + const EVT_COMPRESSION_END + const EVT_COMPRESSION_START + const EVT_DECOMPRESSION_END + const EVT_DECOMPRESSION_START + const FLAC_MAGIC + const GIF_MAGIC + const GZIP_MAGIC + const JPG_MAGIC + const KNZ_MAGIC + const LZMA_MAGIC + const MAC_CIGAM32 + const MAC_CIGAM64 + const MAC_MAGIC32 + const MAC_MAGIC64 + const MP3_ID3_MAGIC + const NO_MAGIC + const PBM_MAGIC + const PDF_MAGIC + const PGM_MAGIC + const PNG_MAGIC + const PPM_MAGIC + const RIFF_MAGIC + const WIN_MAGIC + const XZ_MAGIC + const ZIP_MAGIC + const ZSTD_MAGIC + var KEYS16 = [3]uint + var KEYS32 = [17]uint + var LOG2 = [...]uint32 + var LOG2_4096 = [...]uint32 + var SQUASH [4096]int + var STRETCH [4096]int + func Abs(x int32) int32 + func ComputeFirstOrderEntropy1024(blockLen int, histo []int) int + func ComputeHistogram(block []byte, freqs []int, isOrder0, withTotal bool) + func ComputeJobsPerTask(jobsPerTask []uint, jobs, tasks uint) ([]uint, error) + func GetMagicType(src []byte) uint + func IsDataCompressed(magic uint) bool + func IsDataExecutable(magic uint) bool + func IsDataMultimedia(magic uint) bool + func IsPowerOf2(x int32) bool + func Log2(x uint32) (uint32, error) + func Log2NoCheck(x uint32) uint32 + func Log2ScaledBy1024(x uint32) (uint32, error) + func Lsb(x int32) int32 + func Max(x, y int32) int32 + func Min(x, y int32) int32 + func Msb(x int32) int32 + func PositiveOrNull(x int32) int32 + func ResetLsb(x int32) int32 + func RoundUpPowerOfTwo(x int32) int32 + func Squash(d int) int + type ByteTransform interface + Forward func(src, dst []byte) (uint, uint, error) + Inverse func(src, dst []byte) (uint, uint, error) + MaxEncodedLen func(srcLen int) int + type DataType int + const DT_BASE64 + const DT_BIN + const DT_DNA + const DT_EXE + const DT_MULTIMEDIA + const DT_NUMERIC + const DT_SMALL_ALPHABET + const DT_TEXT + const DT_UNDEFINED + const DT_UTF8 + func DetectSimpleType(count int, freqs0 []int) DataType + type EntropyDecoder interface + BitStream func() InputBitStream + Dispose func() + Read func(block []byte) (int, error) + type EntropyEncoder interface + BitStream func() OutputBitStream + Dispose func() + Write func(block []byte) (int, error) + type Event struct + func NewEvent(evtType, id int, size int64, hash uint32, hashing bool, evtTime time.Time) *Event + func NewEventFromString(evtType, id int, msg string, evtTime time.Time) *Event + func (this *Event) Hash() uint32 + func (this *Event) Hashing() bool + func (this *Event) ID() int + func (this *Event) Size() int64 + func (this *Event) String() string + func (this *Event) Time() time.Time + func (this *Event) Type() int + type InputBitStream interface + Close func() (bool, error) + HasMoreToRead func() (bool, error) + Read func() uint64 + ReadArray func(bits []byte, length uint) uint + ReadBit func() int + ReadBits func(length uint) uint64 + type IntTransform interface + Forward func(src, dst []int) (uint, uint, error) + Inverse func(src, dst []int) (uint, uint, error) + MaxEncodedLen func(srcLen int) int + type Listener interface + ProcessEvent func(evt *Event) + type Magic struct + type OutputBitStream interface + Close func() (bool, error) + WriteArray func(bits []byte, length uint) uint + WriteBit func(bit int) + WriteBits func(bits uint64, length uint) uint + Written func() uint64 + type Predictor interface + Get func() int + Update func(bit byte) Other modules containing this package github.com/flanglet/kanzi-go