types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidBit = errors.New("invalid bit")

Functions

This section is empty.

Types

type Bit

type Bit uint8

func (Bit) ToByte

func (b Bit) ToByte() byte

type CompressionStats

type CompressionStats struct {
	CompressionRatio     float64
	CompressionAlgorithm string

	Stats *Stats
}

type Result

type Result struct {
	Bits  []Bit
	Stats *Stats
}

type Stats

type Stats struct {
	BitsCount int
	ByteCount int

	BitsStrCount map[int]map[int64]int
	SubstrsCount []SubstrCount

	CompressionStats *CompressionStats
}

func (*Stats) RenderStats

func (s *Stats) RenderStats(w io.Writer)

type SubstrCount added in v1.1.0

type SubstrCount struct {
	Total  int
	Length int
	Counts map[string]int

	SortedSubstrs []string
	AllCounts     map[string]int
}

Jump to

Keyboard shortcuts

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