Versions in this module Expand all Collapse all v0 v0.1.0 Jan 30, 2021 Changes in this version + const CHUNK_MAX + var SnappyStreamHeaderMagic = []byte + func IntMin(a int, b int) int + func ReadSnappyStreamCompressedFile(filename string) ([]byte, error) + func UnsnapOneFrame(r io.Reader, encBuf *FixedSizeRingBuf, outDecodedBuf *FixedSizeRingBuf, ...) (nEnc int64, nDec int64, err error) + func Unsnappy(r io.Reader, w io.Writer) (err error) + type FixedSizeRingBuf struct + A [2][]byte + Beg int + N int + OneMade bool + Readable int + Use int + func NewFixedSizeRingBuf(maxViewInBytes int) *FixedSizeRingBuf + func (b *FixedSizeRingBuf) Adopt(me []byte) + func (b *FixedSizeRingBuf) Advance(n int) + func (b *FixedSizeRingBuf) Bytes() []byte + func (b *FixedSizeRingBuf) ContigLen() int + func (b *FixedSizeRingBuf) GetEndmostWritable() (beg int, end int) + func (b *FixedSizeRingBuf) GetEndmostWritableSlice() []byte + func (b *FixedSizeRingBuf) Make2ndBuffer() + func (b *FixedSizeRingBuf) Read(p []byte) (n int, err error) + func (b *FixedSizeRingBuf) ReadAndMaybeAdvance(p []byte, doAdvance bool) (n int, err error) + func (b *FixedSizeRingBuf) ReadFrom(r io.Reader) (n int64, err error) + func (b *FixedSizeRingBuf) ReadWithoutAdvance(p []byte) (n int, err error) + func (b *FixedSizeRingBuf) Reset() + func (b *FixedSizeRingBuf) Write(p []byte) (n int, err error) + func (b *FixedSizeRingBuf) WriteTo(w io.Writer) (n int64, err error) + type SnappyFile struct + DecBuf FixedSizeRingBuf + EncBuf FixedSizeRingBuf + Fname string + HeaderChunkWritten bool + Reader io.Reader + SnappyEncodeDecodeOff bool + Writer io.Writer + Writing bool + func Create(name string) (file *SnappyFile, err error) + func NewReader(r io.Reader) *SnappyFile + func NewWriter(w io.Writer) *SnappyFile + func Open(name string) (file *SnappyFile, err error) + func (f *SnappyFile) Close() error + func (f *SnappyFile) Dump() + func (f *SnappyFile) Read(p []byte) (n int, err error) + func (f *SnappyFile) Sync() error + func (sf *SnappyFile) Write(p []byte) (n int, err error)