File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,6 @@ type Encoder interface {
45
45
EncodeRLP (io.Writer ) error
46
46
}
47
47
48
- // ListSize returns the encoded size of an RLP list with the given
49
- // content size.
50
- func ListSize (contentSize uint64 ) uint64 {
51
- return uint64 (headsize (contentSize )) + contentSize
52
- }
53
-
54
48
// Encode writes the RLP encoding of val to w. Note that Encode may
55
49
// perform many small writes in some cases. Consider making w
56
50
// buffered.
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ type RawValue []byte
28
28
29
29
var rawValueType = reflect .TypeOf (RawValue {})
30
30
31
+ // ListSize returns the encoded size of an RLP list with the given
32
+ // content size.
33
+ func ListSize (contentSize uint64 ) uint64 {
34
+ return uint64 (headsize (contentSize )) + contentSize
35
+ }
36
+
31
37
// Split returns the content of first RLP value and any
32
38
// bytes after the value as subslices of b.
33
39
func Split (b []byte ) (k Kind , content , rest []byte , err error ) {
You can’t perform that action at this time.
0 commit comments