easyice commented on code in PR #13203: URL: https://github.com/apache/lucene/pull/13203#discussion_r1537749847
########## lucene/core/src/java/org/apache/lucene/util/GroupVIntUtil.java: ########## @@ -111,4 +112,40 @@ public static int readGroupVInt( pos += 1 + n4Minus1; return (int) (pos - posStart); } + + private static int numBytes(int v) { + // | 1 to return 1 when v = 0 + return Integer.BYTES - (Integer.numberOfLeadingZeros(v | 1) >> 3); + } + + public static void writeGroupVInts(DataOutput out, byte[] scratch, long[] values, int limit) Review Comment: done! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org