package
5.6.3-darwinv2-rc0+incompatible
Repository: https://github.com/scroll-tech/go-ethereum.git
Documentation: pkg.go.dev
# Functions
AppendUint64 appends the RLP encoding of i to b, and returns the resulting slice.
BytesSize returns the encoded size of a byte slice.
CountValues counts the number of encoded values in b.
Decode parses RLP-encoded data from r and stores the result in the value pointed to by val.
DecodeBytes parses RLP data from b into val.
Encode writes the RLP encoding of val to w.
EncodeToBytes returns the RLP encoding of val.
EncodeToReader returns a reader from which the RLP encoding of val can be read.
IntSize returns the encoded size of the integer x.
ListSize returns the encoded size of an RLP list with the given content size.
NewListIterator creates an iterator for the (list) represented by data TODO: Consider removing this implementation, as it is no longer used.
NewListStream creates a new stream that pretends to be positioned at an encoded list of the given length.
NewStream creates a new decoding stream reading from r.
Split returns the content of first RLP value and any bytes after the value as subslices of b.
SplitList splits b into the content of a list and any remaining bytes after the list.
SplitString splits b into the content of an RLP string and any remaining bytes after the string.
SplitUint64 decodes an integer at the beginning of b.
# Variables
No description provided by the author
Common encoded values.
EOL is returned when the end of the current list has been reached during streaming.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
ByteReader must be implemented by any input reader for a Stream.
Decoder is implemented by types that require custom RLP decoding rules or need to decode into private fields.
Encoder is implemented by types that require custom encoding rules or want to encode private fields.