Home | History | Annotate | Download | only in base

Lines Matching refs:numBytes

277    * @param numBytes the number of bytes in the byte array
281 private static void testBytes(int numBytes, long expectedCount) {
282 testBytes(numBytes, expectedCount, 0, -1);
290 * @param numBytes the number of bytes in the byte array
294 * or -1 to mean the max limit for numBytes
297 private static void testBytes(int numBytes, long expectedCount, long start,
299 byte[] bytes = new byte[numBytes];
301 lim = 1L << (numBytes * 8);
306 for (int i = 0; i < numBytes; i++) {
311 assertEquals(isRoundTrippable, Utf8.isWellFormed(bytes, 0, numBytes));