@Override
	public byte readByte(long index) throws IOException {
		ensureBounds(index, 1);
		Buffer fileBuffer = getBufferFor(index);
		int ofs = fileBuffer.getBufferOffset(index);

		return fileBuffer.bytes[ofs];
	}
Returns the access mode the file was opened with.

@return {@link AccessMode} used to open file
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/FileByteProvider.java