Skip to main content

sample_offsets

Function sample_offsets 

Source
pub fn sample_offsets(len: usize) -> Vec<usize>
Expand description

Byte offsets of the sample slices of a block of len bytes, evenly spaced from 0 to len - SAMPLE_SLICE, each rounded down to a multiple of 4 so that the word alignment arm64_alignment finds on the sample is the block’s. Empty when the block is not sampled.