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

Interface Encoder

rlp/encode.go:36–46  ·  view source on GitHub ↗

Encoder is implemented by types that require custom encoding rules or want to encode private fields.

Source from the content-addressed store, hash-verified

34// Encoder is implemented by types that require custom
35// encoding rules or want to encode private fields.
36type Encoder interface {
37 // EncodeRLP should write the RLP encoding of its receiver to w.
38 // If the implementation is a pointer method, it may also be
39 // called for nil pointers.
40 //
41 // Implementations should generate valid RLP. The data written is
42 // not verified at the moment, but a future version might. It is
43 // recommended to write only a single value but writing multiple
44 // values or no value at all is also permitted.
45 EncodeRLP(io.Writer) error
46}
47
48// Encode writes the RLP encoding of val to w. Note that Encode may
49// perform many small writes in some cases. Consider making w

Callers 1

makeEncoderWriterFunction · 0.65

Implementers 1

MyCoolTyperlp/encoder_example_test.go

Calls

no outgoing calls

Tested by

no test coverage detected