Function filecoin_proofs::pieces::get_piece_start_byte
source ยท pub fn get_piece_start_byte(
pieces: &[UnpaddedBytesAmount],
piece_bytes: UnpaddedBytesAmount,
) -> UnpaddedByteIndex
Expand description
Given a list of pieces, find the byte where a given piece does or would start.