Lines Matching refs:Buffer
215 private static void compact(Buffer b) {
226 private static void checkInvalidMarkException(final Buffer b) {
428 fail("Buffer not correctly aligned at index 0", as);
431 fail("Buffer not correctly aligned at limit", as);
442 fail("Buffer capacity incorrect, expected: " + ec, as);
455 private static void catchIllegalArgument(Buffer b, Runnable thunk) {
459 private static void catchReadOnlyBuffer(Buffer b, Runnable thunk) {
463 private static void catchIndexOutOfBounds(Buffer b, Runnable thunk) {
471 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) {
815 fail("Buffer not equal to read-only view", b, rb);
955 catchIllegalArgument((Buffer) null, () -> ByteBuffer.allocate(-1));
965 catchIllegalArgument((Buffer) null, () -> ByteBuffer.allocateDirect(-1));