Skip to main content

check_codebook

Function check_codebook 

Source
pub fn check_codebook(
    layout: &ArrayLayout,
    quantization: &Quantization,
) -> Result<(), DecodeError>
Expand description

Hold a codebook to the array whose codes it reads: the array’s fill value is the codebook’s nodataCode, and every code key fits the array’s data type. A reader dequantizing an array with metadata held elsewhere (the group’s) checks that block against the array with this.