Skip to main content

encode_stream

Function encode_stream 

Source
pub fn encode_stream(
    module: &InfinityModule,
    chunk: usize,
) -> Result<Vec<Frame>>
Expand description

Encode a module into stream frames.

The frames carry the exact bytes of the module’s canonical image, so reassembly reproduces encode(module) byte for byte and therefore the same content hash as the whole-module encoding.