code: private void expandIfNecessary(int minBlockCount) {
      if (minBlockCount > blocks.length) {
        this.blocks = Arrays.copyOf(blocks, nextPowerOf2(minBlockCount));
      }
    }
docs: lower-level methods dealing with the blocks array