Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java1198 int nbytes = 2; in testGetChar() local
1199 byte bytes[] = new byte[nbytes]; in testGetChar()
1202 for (int i = 0; buf.remaining() >= nbytes; i++) { in testGetChar()
1205 assertEquals(i * nbytes, buf.position()); in testGetChar()
1224 int nbytes = 2; in testGetCharint() local
1225 byte bytes[] = new byte[nbytes]; in testGetCharint()
1228 for (int i = 0; i <= buf.limit() - nbytes; i++) { in testGetCharint()
1245 buf.getChar(buf.limit() - nbytes + 1); in testGetCharint()
1266 int nbytes = 2; in testPutChar() local
1267 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/java/java/io/
DObjectInputStream.java2443 int nbytes = in.read(); in read() local
2444 totalBytesRead += nbytes >= 0 ? 1 : 0; in read()
2445 return nbytes; in read()
2450 int nbytes; in read() local
2454 nbytes = in.read(b, off, len); in read()
2455 totalBytesRead += nbytes >= 0 ? nbytes : 0; in read()
2456 return nbytes; in read()
2461 nbytes = in.read(b, off, len); in read()
2462 totalBytesRead += nbytes >= 0 ? nbytes : 0; in read()
2463 return (nbytes >= 0) ? (nbytes + 1) : 1; in read()
/libcore/ojluni/src/main/native/
DUnixNativeDispatcher.c436 jlong address, jint nbytes) in Java_sun_nio_fs_UnixNativeDispatcher_read() argument
440 RESTARTABLE(read((int)fd, bufp, (size_t)nbytes), n); in Java_sun_nio_fs_UnixNativeDispatcher_read()
449 jlong address, jint nbytes) in Java_sun_nio_fs_UnixNativeDispatcher_write() argument
453 RESTARTABLE(write((int)fd, bufp, (size_t)nbytes), n); in Java_sun_nio_fs_UnixNativeDispatcher_write()
Dzip_util.c147 ZFILE_read(ZFILE zfd, char *buf, jint nbytes, jlong offset) { in ZFILE_read() argument
149 return (int) IO_Read(zfd, buf, nbytes); in ZFILE_read()
159 return pread(zfd, buf, nbytes, offset); in ZFILE_read()
Djvm.h1154 JVM_Read(jint fd, char *buf, jint nbytes);
1166 JVM_Write(jint fd, char *buf, jint nbytes);