pub async fn read_sector_record_chunks<PosTable, S, A>(
piece_offset: PieceOffset,
pieces_in_sector: u16,
s_bucket_offsets: &[u32; 65536],
sector_contents_map: &SectorContentsMap,
pos_table: &PosTable,
sector: &ReadAt<S, A>,
mode: ReadSectorRecordChunksMode,
) -> Result<Box<[Option<Scalar>; 65536]>, ReadingError>where
PosTable: Table,
S: ReadAtSync,
A: ReadAtAsync,
Expand description
Read sector record chunks, only plotted s-buckets are returned (in decoded form).
NOTE: This is an async function, but it also does CPU-intensive operation internally, while it is not very long, make sure it is okay to do so in your context.