public PagedBytes(int blockBits) {assert blockBits > 0 && blockBits <= 31 : blockBits;this.blockSize = 1 << blockBits;this.blockBits = blockBits;blockMask = blockSize-1;upto = blockSize;bytesUsedPerBlock = RamUsageEstimator.alignObjectSize(blockSize + RamUsageEstimator.NUM_BYTES_ARRAY_HEADER);numBlocks = 0;}

public PagedBytes(int blockBits){Debug.Assert(blockBits > 0 && blockBits <= 31, blockBits.ToString());this.blockSize = 1 << blockBits;this.blockBits = blockBits;blockMask = blockSize - 1;upto = blockSize;bytesUsedPerBlock = blockSize + RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + RamUsageEstimator.NUM_BYTES_OBJECT_REF;}
