Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java1168 int nbytes = 2; in testGetChar() local
1169 byte bytes[] = new byte[nbytes]; in testGetChar()
1172 for (int i = 0; buf.remaining() >= nbytes; i++) { in testGetChar()
1175 assertEquals(i * nbytes, buf.position()); in testGetChar()
1194 int nbytes = 2; in testGetCharint() local
1195 byte bytes[] = new byte[nbytes]; in testGetCharint()
1198 for (int i = 0; i <= buf.limit() - nbytes; i++) { in testGetCharint()
1215 buf.getChar(buf.limit() - nbytes + 1); in testGetCharint()
1236 int nbytes = 2; in testPutChar() local
1237 byte bytes[] = new byte[nbytes]; in testPutChar()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPipedOutputStreamTest.java62 public String read(int nbytes) { in read() argument
63 byte[] buf = new byte[nbytes]; in read()
65 reader.read(buf, 0, nbytes); in read()
DPipedInputStreamTest.java43 public PWriter(PipedOutputStream pout, int nbytes) { in PWriter() argument
45 bytes = new byte[nbytes]; in PWriter()
/libcore/luni/src/test/java/libcore/java/io/
DOldPipedOutputStreamTest.java60 public String read(int nbytes) { in read() argument
61 byte[] buf = new byte[nbytes]; in read()
63 reader.read(buf, 0, nbytes); in read()
DOldPipedWriterTest.java58 public String read(int nbytes) { in read() argument
59 buf = new char[nbytes]; in read()
61 pr.read(buf, 0, nbytes); in read()
/libcore/ojluni/src/main/native/
Dzip_util.c145 ZFILE_read(ZFILE zfd, char *buf, jint nbytes) { in ZFILE_read() argument
147 return (int) IO_Read(zfd, buf, nbytes); in ZFILE_read()
157 return read(zfd, buf, nbytes); in ZFILE_read()
Djvm.h1154 JVM_Read(jint fd, char *buf, jint nbytes);
1166 JVM_Write(jint fd, char *buf, jint nbytes);