snappy - ActiveState ActiveGo 1.8
...

Package snappy

import "github.com/eapache/go-xerial-snappy"
Overview
Index

Overview ▾

func Decode

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

Decode decodes snappy data whether it is traditional unframed or includes the xerial framing format.

func Encode

func Encode(src []byte) []byte

Encode encodes data as snappy with no framing header.