You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static byte[] incrementBytes(byte[] value) {
if (value == null || value.length == 0) {
throw new IllegalArgumentException("Input byte array cannot be null or empty");
}
byte[] newValue = value.clone();
boolean carry = true;
int index = newValue.length - 1;
while (carry && index >= 0) {
if (newValue[index] == (byte) 0xFF) {
newValue[index] = 0;
index--;
} else {
newValue[index]++;
carry = false;
}
}
// If carry is still true, this means we have overflowed beyond the most significant byte
if (carry) {
byte[] extendedValue = new byte[newValue.length + 1];
System.arraycopy(newValue, 0, extendedValue, 1, newValue.length);
extendedValue[0] = 1; // Add a new leading byte
return extendedValue;
}
return newValue;
}
看起来是io.milvus.orm.iterator.QueryIterator#setupNextExpr方法导致的,使用的milvus-sdk-java版本是2.3.6,如图
The text was updated successfully, but these errors were encountered: