blockOffsetWidthForBlock method

int blockOffsetWidthForBlock(
  1. CsrBlockConfig block
)

Returns the number of address offset bits needed to index within block, derived from the effective block size.

Implementation

int blockOffsetWidthForBlock(CsrBlockConfig block) =>
    (blockSizeForBlock(block) - 1).bitLength;