|
@@ -2,19 +2,10 @@ package lz4block
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
"bytes"
|
|
"bytes"
|
|
|
- "encoding/base64"
|
|
|
|
|
"strings"
|
|
"strings"
|
|
|
"testing"
|
|
"testing"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-func unbase64(in string) []byte {
|
|
|
|
|
- p, err := base64.StdEncoding.DecodeString(in)
|
|
|
|
|
- if err != nil {
|
|
|
|
|
- panic(err)
|
|
|
|
|
- }
|
|
|
|
|
- return p
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func TestBlockDecode(t *testing.T) {
|
|
func TestBlockDecode(t *testing.T) {
|
|
|
appendLen := func(p []byte, size int) []byte {
|
|
appendLen := func(p []byte, size int) []byte {
|
|
|
for size > 0xFF {
|
|
for size > 0xFF {
|