Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 8 of 8) 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/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 pread64(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);