MCPcopy Create free account
hub / github.com/0xPolygon/bor / Encoder

Interface Encoder

rlp/encode.go:46–56  ·  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

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

Callers 1

encode_test.goFile · 0.85

Implementers 15

testEncoderrlp/encode_test.go
testEncoderValueMethodrlp/encode_test.go
MyCoolTyperlp/encoder_example_test.go
Withdrawalcore/types/withdrawal.go
Receiptcore/types/gen_receipt_json.go
Transactioncore/types/transaction.go
StateAccountcore/types/state_account.go
Headercore/types/block.go
Logcore/types/gen_log_json.go
Blockcore/types/block.go
BlockAccessListcore/types/bal/bal_encoding.go
ConstructionBlockAccessListcore/types/bal/bal.go

Calls

no outgoing calls

Tested by

no test coverage detected