toBufferOffset method

int toBufferOffset(
  1. int offset
)

Converts file offset to buffer offset

@param offset The offset relative to the whole file @return The offset relative to the current loaded portion of the file

Implementation

int toBufferOffset(int offset) {
  return offset - currentOffset;
}