docs: public void record(ByteBuffer block, int offset) {
      if (this.data == null) {
        // TODO: remove cast to int when large ByteBuffer support is
        // implemented in Java.
        this.data = ByteBuffer.allocate((int) this.length);
      }
  
      int pos = block.position();
      this.data.position(offset);
      this.data.put(block);
      block.position(pos);
    }