Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aleph-zero-foundation/AlephBFT
/ encode_to
Method
encode_to
crypto/src/node.rs:16–20 ·
view source on GitHub ↗
(&self, dest: &mut T)
Source
from the content-addressed store, hash-verified
14
15
impl Encode for NodeIndex {
16
fn encode_to<T: Output + ?Sized>(&self, dest: &mut T) {
17
let val = self.0 as u64;
18
let bytes = val.to_le_bytes();
19
dest.write(&bytes);
20
}
21
}
22
23
impl Decode for NodeIndex {
Callers
nothing calls this directly
Calls
1
len
Method · 0.80
Tested by
no test coverage detected