|
@@ -4,7 +4,6 @@ import (
|
|
|
"code.google.com/p/snappy-go/snappy"
|
|
"code.google.com/p/snappy-go/snappy"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
type Compressor interface {
|
|
type Compressor interface {
|
|
|
Name() string
|
|
Name() string
|
|
|
Encode(data []byte) ([]byte, error)
|
|
Encode(data []byte) ([]byte, error)
|
|
@@ -26,4 +25,4 @@ func (s SnappyCompressor) Encode(data []byte) ([]byte, error) {
|
|
|
|
|
|
|
|
func (s SnappyCompressor) Decode(data []byte) ([]byte, error) {
|
|
func (s SnappyCompressor) Decode(data []byte) ([]byte, error) {
|
|
|
return snappy.Decode(nil, data)
|
|
return snappy.Decode(nil, data)
|
|
|
-}
|
|
|
|
|
|
|
+}
|