Documentation ¶
Index ¶
- Constants
- func Compress(fileContents []byte, useProgressBar bool, maxSearchBufferLength int) []byte
- func CompressFileSync(fileContents []byte, useProgressBar bool, maxSearchBufferLength int) []byte
- func CompressFileSync2(fileContents []byte, _ bool, maxSearchBufferLength int) []byte
- func CompressorWorkerAsync(waitgroup *sync.WaitGroup, output chan<- Reference, searchBuffer []byte, ...)
- func DecodeOpeningSymbols(bytes []byte) []byte
- func Decompress(fileContents []byte, useProgressBar bool) []byte
- func EncodeOpeningSymbols(bytes []byte) []byte
- func FindReverse(slice []byte, val byte) (int, bool)
- func FindReverseSlice(input []byte, val []byte) (int, bool)
- func FindSequential(slice []byte, val byte) (int, bool)
- func NewReader(r io.Reader) io.Reader
- func NewWriter(w io.Writer) io.WriteCloser
- func SortByteArray(src []byte)
- type Reader
- type Reference
- type Writer
Constants ¶
View Source
const ( Opening = "<" Closing = ">" Separator = "," )
View Source
const DefaultWindowSize = 4096
View Source
const EncodedOpening = 0xff
View Source
const EscapeByte = 0x5c
View Source
const MinimumSizeOfReference int = -1 // Use -1 to represent dynamic "smart" reference inclusion
Variables ¶
This section is empty.
Functions ¶
func CompressFileSync ¶
func CompressFileSync2 ¶
func CompressorWorkerAsync ¶
func DecodeOpeningSymbols ¶
func Decompress ¶
func EncodeOpeningSymbols ¶
func SortByteArray ¶
func SortByteArray(src []byte)
Types ¶
type Reference ¶
type Reference struct {
// contains filtered or unexported fields
}
func CompressorWorker ¶
Click to show internal directories.
Click to hide internal directories.