MCPcopy Create free account
hub / github.com/MinterTeam/minter-go-node / Decoder

Interface Decoder

rlp/decode.go:64–66  ·  view source on GitHub ↗

Decoder is implemented by types that require custom RLP decoding rules or need to decode into private fields. The DecodeRLP method should read one value from the given Stream. It is not forbidden to read less or more, but it might be confusing.

Source from the content-addressed store, hash-verified

62// The DecodeRLP method should read one value from the given Stream. It is not forbidden to
63// read less or more, but it might be confusing.
64type Decoder interface {
65 DecodeRLP(*Stream) error
66}
67
68// Decode parses RLP-encoded data from r and stores the result in the value pointed to by
69// val. Please see package-level documentation for the decoding rules. Val must be a

Callers 1

decodeDecoderFunction · 0.65

Implementers 1

testDecoderrlp/decode_test.go

Calls

no outgoing calls

Tested by

no test coverage detected