code: public static final boolean endsWithDelimiter(byte[] bytes, int endPos, byte[] delim) {
  		if (endPos < delim.length - 1) {
  			return false;
  		}
  		for (int pos = 0; pos < delim.length; ++pos) {
  			if (delim[pos] != bytes[endPos - delim.length + 1 + pos]) {
  				return false;
  			}
  		}
  		return true;
  	}
docs: Checks if the given bytes ends with the delimiter at the given end position.
  
  @param bytes  The byte array that holds the value.
  @param endPos The index of the byte array where the check for the delimiter ends.
  @param delim  The delimiter to check for.
  
  @return true if a delimiter ends at the given end position, false otherwise.