MCPcopy Create free account
hub / github.com/base/base / length

Method length

crates/proof/mpt/src/node.rs:555–564  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

553 }
554
555 fn length(&self) -> usize {
556 match self {
557 Self::Empty => 1,
558 Self::Blinded { commitment } => commitment.length(),
559 Self::Leaf { .. } | Self::Extension { .. } | Self::Branch { .. } => {
560 let payload_length = self.payload_length();
561 Header { list: true, payload_length }.length() + payload_length
562 }
563 }
564 }
565}
566
567impl Decodable for TrieNode {

Callers 15

upload_single_partMethod · 0.45
newMethod · 0.45
verifyMethod · 0.45
update_accountsMethod · 0.45
change_storageMethod · 0.45
blindMethod · 0.45
payload_lengthMethod · 0.45
blinded_lengthMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45
test_decode_branchFunction · 0.45

Calls 1

payload_lengthMethod · 0.80