Lines Matching refs:buffer
70 * Helper function for returning a buffer containing a I18Name test data.
79 ByteBuffer buffer = ByteBuffer.allocate(data.length + 1);
80 buffer.put((byte) length);
81 buffer.put(data);
82 buffer.position(0);
83 return buffer;
87 * Verify that BufferUnderflowException will be thrown when parsing from an empty buffer.
98 * than the actual buffer size.
105 ByteBuffer buffer = getTestBuffer(data, data.length);
106 buffer.limit(buffer.remaining() - 1);
107 I18Name.parse(buffer);
123 * Verify that the expected I18Name will be returned when parsing a buffer contained the
137 * Verify that the expected I18Name will be returned when parsing a buffer contained
154 * Verify that an I18Name with an empty text will be returned when parsing a buffer contained