code: private ByteBuffer getDataBuffer(long index) {
      ByteBuffer buf = dataBuffers[(int) (index / segmentSize)];
      buf.position((int) (index % segmentSize));
      return buf;
    }
docs: Return the data buffer for the given position