snappy

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnappyCompressor

type SnappyCompressor struct {
}

func NewCompressor

func NewCompressor() *SnappyCompressor

func (*SnappyCompressor) Compress

func (c *SnappyCompressor) Compress(src []byte) []byte

this will return a snappy format data.

type SnappyDecompressor

type SnappyDecompressor struct {
}

func NewDecompressor

func NewDecompressor() *SnappyDecompressor

func (*SnappyDecompressor) Decompress

func (c *SnappyDecompressor) Decompress(dst, src []byte) []byte

this will return a original data.

Jump to

Keyboard shortcuts

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