Documentation ¶
Overview ¶
Package huffslice compresses a slice using Huffman encoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder[T comparable] struct { Slice slice.Slice[T] SingleToken T }
Encoder is used to create the Slice.
func NewEncoder ¶
func NewEncoder[T comparable](ln int, singleToken T) *Encoder[T]
NewEncoder creates a slice with a capacity of ln and sets the values for the single token.
Click to show internal directories.
Click to hide internal directories.