Commit 91855c03 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 99ea2b93
...@@ -38,7 +38,7 @@ func hex(s string) string { ...@@ -38,7 +38,7 @@ func hex(s string) string {
// tGetPutSize is interface with Get/Put/Size methods, e.g. with // tGetPutSize is interface with Get/Put/Size methods, e.g. with
// GetBinHead/PutBinHead/BinHeadSize. // GetBinHead/PutBinHead/BinHeadSize.
type tGetPutSize interface { type tGetPutSize interface {
// XXX Get(data []byte) (n int, ret interface{}) // TODO Get(data []byte) (n int, ret interface{})
Size(arg interface{}) int Size(arg interface{}) int
Put(data []byte, arg interface{}) int Put(data []byte, arg interface{}) int
} }
...@@ -55,8 +55,8 @@ func test1(t *testing.T, enc tGetPutSize, arg interface{}, encoded string) { ...@@ -55,8 +55,8 @@ func test1(t *testing.T, enc tGetPutSize, arg interface{}, encoded string) {
if sz := enc.Size(arg); sz != n { if sz := enc.Size(arg); sz != n {
t.Errorf("size(%v) -> %d ; len(data)=%d", arg, sz, n) t.Errorf("size(%v) -> %d ; len(data)=%d", arg, sz, n)
} }
// XXX decode == arg, n // TODO decode == arg, n
// XXX decode([:n-1]) -> overflow // TODO decode([:n-1]) -> overflow
} }
type tEncUint64 struct{} type tEncUint64 struct{}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment