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

Method encode_origin_bits

crates/consensus/protocol/src/batch/payload.rs:115–117  ·  view source on GitHub ↗

Encode the origin bits into a writer.

(&self, w: &mut dyn bytes::BufMut)

Source from the content-addressed store, hash-verified

113
114 /// Encode the origin bits into a writer.
115 pub fn encode_origin_bits(&self, w: &mut dyn bytes::BufMut) -> Result<(), SpanBatchError> {
116 SpanBatchBits::encode(w, self.block_count as usize, &self.origin_bits)
117 }
118
119 /// Encode the block count into a writer.
120 pub fn encode_block_count(&self, w: &mut dyn bytes::BufMut) {

Callers 1

encode_payloadMethod · 0.80

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected