Lines Matching refs:buf
348 byte[] buf = new byte[255];
355 ois.readFully(buf);
358 if (buf[i] != output[i])
369 byte[] buf = new byte[256];
376 ois.readFully(buf);
379 if (buf[i] != output[i])
402 byte[] buf = new byte[10];
406 ois.read(buf, 0, 10);
408 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, 0, 10)
443 byte[] buf = new byte[10];
447 ois.readFully(buf);
449 assertEquals("Wrote incorrect bytes value", "HelloWorld", new String(buf, 0, 10, "UTF-8")
473 char[] buf = new char[10];
480 buf[i] = ois.readChar();
482 assertEquals("Wrote incorrect chars", "HelloWorld", new String(buf, 0, 10)