@Override
	public byte getByte(int offset) throws MemoryAccessException {
		if (offset < 0 || offset >= bytes.length) {
			throw new MemoryAccessException("Offset " + offset + " is not in range");
		}
		return bytes[offset];
	}
Get number of bytes contained within buffer
@return byte count
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/ByteMemBufferImpl.java