BadRecordType { offset: u64, rec_type: u32 },
#[error("In variable record starting at offset {start_offset:#x}, variable width is not in the valid range -1 to 255.")]
- BadVariableWidth {
- start_offset: u64,
- width: i32,
- },
+ BadVariableWidth { start_offset: u64, width: i32 },
#[error("In variable record starting at offset {start_offset:#x}, variable label code {code} at offset {code_offset:#x} is not 0 or 1.")]
BadVariableLabelCode {
max: Self::MAX_INDEXES,
});
}
-
+
let index_offset = r.stream_position()?;
let mut dict_indexes = Vec::with_capacity(n as usize);
let mut invalid_indexes = Vec::new();