code: public static final int compare(MemorySegment seg1, MemorySegment seg2, int offset1, int offset2, int len) {
  		final byte[] b1 = seg1.memory;
  		final byte[] b2 = seg2.memory;
  		
  		int val = 0;
  		for (int pos = 0; pos < len && (val = (b1[offset1 + pos] & 0xff) - (b2[offset2 + pos] & 0xff)) == 0; pos++);
  		return val;
  	}
docs: -------------------------------------------------------------------------