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.
| 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. |
| 64 | type 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 |
no outgoing calls
no test coverage detected