static boolean bufEq(ByteBuffer buf, byte[] arr) {
		return Arrays.equals(buf.array(), buf.position(), buf.limit(), arr, 0, arr.length);
	}
Check if the given buffer's contents are equal to that of the given array

@param buf the buffer
@param arr the array
@return true if equal, false otherwise
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtHandler.java