Searched refs:charBuffer (Results 1 – 4 of 4) sorted by relevance
30 CharBuffer charBuffer = null; in test_Reader_CharBuffer_null() local32 mockReader.read(charBuffer); in test_Reader_CharBuffer_null()45 CharBuffer charBuffer = CharBuffer.allocate(0); in test_Reader_CharBuffer_ZeroChar() local46 int result = mockReader.read(charBuffer); in test_Reader_CharBuffer_ZeroChar()58 CharBuffer charBuffer = CharBuffer.allocate(CHARBUFFER_SIZE); in test_Reader_CharBufferChar() local59 charBuffer.append('A'); in test_Reader_CharBufferChar()60 final int CHARBUFFER_REMAINING = charBuffer.remaining(); in test_Reader_CharBufferChar()61 int result = mockReader.read(charBuffer); in test_Reader_CharBufferChar()63 charBuffer.rewind(); in test_Reader_CharBufferChar()64 assertEquals(s.substring(0, CHARBUFFER_REMAINING), charBuffer in test_Reader_CharBufferChar()
61 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress() local63 long charBufferBasePointer = NIOAccess.getBasePointer(charBuffer); in testJNIAccessByAddress()67 charBuffer.put('b'); in testJNIAccessByAddress()68 assertEquals(charBufferBasePointer + Character.BYTES, NIOAccess.getBasePointer(charBuffer)); in testJNIAccessByAddress()
845 CharBuffer charBuffer; in testAsCharBuffer() local852 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()853 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer()854 while (charBuffer.remaining() > 0) { in testAsCharBuffer()856 value = charBuffer.get(); in testAsCharBuffer()863 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()864 assertSame(ByteOrder.LITTLE_ENDIAN, charBuffer.order()); in testAsCharBuffer()865 while (charBuffer.remaining() > 0) { in testAsCharBuffer()867 value = charBuffer.get(); in testAsCharBuffer()875 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()[all …]
5546 public int read(CharBuffer charBuffer) throws IOException { in test_nextLine() argument5548 charBuffer.append("hello\n"); in test_nextLine()