@Override
	public int getBytes(byte[] b, int offset) {
		if (offset < 0 || offset >= bytes.length) {
			return 0;
		}
		int len = Math.min(b.length, bytes.length - offset);
		System.arraycopy(bytes, offset, b, 0, len);
		return len;
	}
Get number of bytes contained within buffer
@return byte count
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/ByteMemBufferImpl.java