blambov commented on code in PR #2267:
URL: https://github.com/apache/cassandra/pull/2267#discussion_r1172499987


##########
src/java/org/apache/cassandra/utils/ByteBufferUtil.java:
##########
@@ -866,4 +869,27 @@ private static boolean startsWith(ByteBuffer src, 
ByteBuffer prefix, int offset)
 
         return true;
     }
-}
+
+    /**
+     * Returns true if the buffer at the current position in the input matches 
given buffer.
+     * If true, the input is positioned at the end of the consumed buffer.
+     * If false, the position of the input is undefined.
+     * <p>
+     * The matched buffer is unchanged
+     *
+     * @throws IOException
+     */
+    public static boolean equalsWithShortLength(FileDataInput in, ByteBuffer 
toMatch) throws IOException

Review Comment:
   The `test-trie` target would be the one exercising it.
   
   Added a short direct test.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to