snappy

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(src []byte) ([]byte, error)

Decode the given content.

func Encode

func Encode(src []byte) (dst []byte, err error)

Encode the given content.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder is a decoder for a streaming.

func NewDecoder

func NewDecoder(r io.Reader, w io.Writer) *Decoder

NewDecoder create a decoder object.

func (*Decoder) Decode

func (s *Decoder) Decode() error

Decode the stream.

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

Encoder is a encoder for a streaming.

func NewEncoder

func NewEncoder(r io.Reader, w io.Writer) *Encoder

NewEncoder create a encoder object.

func (*Encoder) Encode

func (s *Encoder) Encode() error

Encode the stream.

Jump to

Keyboard shortcuts

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