diff options
author | Felix Lange <fjl@twurst.com> | 2015-09-10 20:48:19 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-09-11 01:41:51 +0800 |
commit | fc8b246109760714a838f4be163cca1dbb998163 (patch) | |
tree | 764dab3a03b47ff2d2bcdd788b629a4284e6ad2d /rlp/encode.go | |
parent | 24bb68e7cf546153436f1d38a7227fdf75d73343 (diff) | |
download | dexon-fc8b246109760714a838f4be163cca1dbb998163.tar dexon-fc8b246109760714a838f4be163cca1dbb998163.tar.gz dexon-fc8b246109760714a838f4be163cca1dbb998163.tar.bz2 dexon-fc8b246109760714a838f4be163cca1dbb998163.tar.lz dexon-fc8b246109760714a838f4be163cca1dbb998163.tar.xz dexon-fc8b246109760714a838f4be163cca1dbb998163.tar.zst dexon-fc8b246109760714a838f4be163cca1dbb998163.zip |
rlp: move ListSize to raw.go
Diffstat (limited to 'rlp/encode.go')
-rw-r--r-- | rlp/encode.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/rlp/encode.go b/rlp/encode.go index 2aeee4721..d73b17c28 100644 --- a/rlp/encode.go +++ b/rlp/encode.go @@ -45,12 +45,6 @@ type Encoder interface { EncodeRLP(io.Writer) error } -// ListSize returns the encoded size of an RLP list with the given -// content size. -func ListSize(contentSize uint64) uint64 { - return uint64(headsize(contentSize)) + contentSize -} - // Encode writes the RLP encoding of val to w. Note that Encode may // perform many small writes in some cases. Consider making w // buffered. |