package
3.3.100
Repository: https://github.com/ik-tech/dragonboat.git
Documentation: pkg.go.dev

# Functions

CompressSnappyBlock compresses the src block using snappy and store the compressed block into dst.
DecompressSnappyBlock decompresses the snappy compressed data in src to the dst slice.
MaxBlockLen returns the maximum length allowed for specified compression type.
MaxEncodedLen returns the maximum length of the encoded block given the specified compression type and src length.
NewCompressor returns a Compressor instance.
NewCountedWriter creates a new CountedWriter.
NewDecompressor return a decompressor instance.

# Constants

NoCompression is the CompressionType value used to indicate not to use any compression.
Snappy is the CompressionType value used to indicate that google snappy is used for data compression.

# Structs

Compressor is a io.WriteCloser that compresses its input data to its underlying io.Writer.
CountedWriter is a io.WriteCloser wrapper that keeps the total number of bytes written to the underlying writer.
Decompressor is a io.WriteCloser that decompresses data read from its underlying reader.

# Type aliases

CompressionType is the type of the compression.