MCPcopy Create free account
hub / github.com/base/triedb / rlp_encode

Method rlp_encode

src/node.rs:289–291  ·  view source on GitHub ↗

Returns the RLP encoding of the [Node].

(&self)

Source from the content-addressed store, hash-verified

287
288 /// Returns the RLP encoding of the [Node].
289 pub fn rlp_encode(&self) -> ArrayVec<u8, MAX_RLP_ENCODED_LEN> {
290 encode_fixed_size(self)
291 }
292
293 /// Returns the size of the [Node] if a new child were to be added.
294 pub fn size_incr_with_new_child(&self) -> usize {

Callers 3

to_rlp_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected