snuyanzin commented on code in PR #30040:
URL: https://github.com/apache/flink/pull/30040#discussion_r4641197222


##########
flink-core/src/main/java/org/apache/flink/util/SwarUtils.java:
##########
@@ -82,6 +82,28 @@ public static boolean containsAnyOrLessThan(
         return false;
     }
 
+    /**
+     * Whether {@code bytes[offset, offset + len)} contains a byte below 
{@code lessThan}, comparing
+     * bytes unsigned.
+     *
+     * @param lessThan at most {@code 0x80}
+     */
+    public static boolean containsLessThan(byte[] bytes, int offset, int len, 
int lessThan) {

Review Comment:
   added reuse



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to