Skip to main content

build_with_encoder

Function build_with_encoder 

Source
pub fn build_with_encoder(
    spec: &BundleSpec,
    signature: &[u8],
    encode: impl Fn(TestCodec, &[u8]) -> Vec<u8>,
) -> Vec<u8> ⓘ
Expand description

build_with_signature, each data block and the blocks info stored by encode(codec, decoded) instead of compress: for a caller whose blocks need another encoder of the same format (a real LZ4HC, say).