Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
impl Encodable for BatchType {
48
fn encode(&self, out: &mut dyn alloy_rlp::BufMut) {
49
(*self as u8).encode(out);
50
}
51
}
52
53
impl Decodable for BatchType {
Callers
1
test_batch_type_rlp_roundtrip
Function · 0.45
Calls
no outgoing calls
Tested by
1
test_batch_type_rlp_roundtrip
Function · 0.36