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

Method encode

crates/consensus/protocol/src/batch/type.rs:48–50  ·  view source on GitHub ↗
(&self, out: &mut dyn alloy_rlp::BufMut)

Source from the content-addressed store, hash-verified

46
47impl Encodable for BatchType {
48 fn encode(&self, out: &mut dyn alloy_rlp::BufMut) {
49 (*self as u8).encode(out);
50 }
51}
52
53impl Decodable for BatchType {

Callers 1

Calls

no outgoing calls

Tested by 1