/libcore/luni/src/main/java/java/nio/channels/ |
D | FileChannel.java | 414 public final long read(ByteBuffer[] buffers) throws IOException { in read() argument 415 return read(buffers, 0, buffers.length); in read() 453 public abstract long read(ByteBuffer[] buffers, int start, int number) in read() argument 713 public final long write(ByteBuffer[] buffers) throws IOException { in write() argument 714 return write(buffers, 0, buffers.length); in write() 754 public abstract long write(ByteBuffer[] buffers, int offset, int length) in write() argument
|
D | ScatteringByteChannel.java | 52 public long read(ByteBuffer[] buffers) throws IOException; in read() argument 88 public long read(ByteBuffer[] buffers, int offset, int length) in read() argument
|
D | GatheringByteChannel.java | 56 public long write(ByteBuffer[] buffers) throws IOException; in write() argument 93 public long write(ByteBuffer[] buffers, int offset, int length) in write() argument
|
/libcore/luni/src/main/java/java/nio/ |
D | PipeImpl.java | 82 public long read(ByteBuffer[] buffers) throws IOException { in read() argument 83 return channel.read(buffers); in read() 86 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { in read() argument 87 return channel.read(buffers, offset, length); in read() 117 public long write(ByteBuffer[] buffers) throws IOException { in write() argument 118 return channel.write(buffers); in write() 121 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { in write() argument 122 return channel.write(buffers, offset, length); in write()
|
D | FileChannelImpl.java | 347 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { in read() argument 348 Arrays.checkOffsetAndCount(buffers.length, offset, length); in read() 351 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.READV)); in read() 512 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { in write() argument 513 Arrays.checkOffsetAndCount(buffers.length, offset, length); in write() 516 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.WRITEV)); in write() 524 …static int calculateTotalRemaining(ByteBuffer[] buffers, int offset, int length, boolean copyingIn… in calculateTotalRemaining() argument 527 count += buffers[i].remaining(); in calculateTotalRemaining() 529 buffers[i].checkWritable(); in calculateTotalRemaining()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 74 … ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; in test_readv() local 75 assertEquals(8, fc.read(buffers)); in test_readv() 77 assertEquals(8, buffers[0].limit() + buffers[1].limit()); in test_readv() 79 buffers[0].flip(); in test_readv() 80 buffers[0].get(bytes); in test_readv() 82 buffers[1].flip(); in test_readv() 83 buffers[1].get(bytes); in test_readv() 91 … ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; in test_writev() local 92 buffers[0].put("abcd".getBytes("US-ASCII")).flip(); in test_writev() 93 buffers[1].put("ABCD".getBytes("US-ASCII")).flip(); in test_writev() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SocketChannelTest.java | 2916 ByteBuffer[] buffers = new ByteBuffer[3]; in test_write$LByteBuffer2() local 2917 buffers[0] = ByteBuffer.wrap(data, 0, 6); in test_write$LByteBuffer2() 2918 buffers[1] = ByteBuffer.wrap(data, 6, data.length - 6); in test_write$LByteBuffer2() 2919 buffers[2] = ByteBuffer.wrap(data); in test_write$LByteBuffer2() 2922 client.write(buffers); in test_write$LByteBuffer2() 2948 ByteBuffer[] buffers = new ByteBuffer[3]; in test_write$LByteBuffer_buffers() local 2949 buffers[0] = ByteBuffer.wrap(data, 0, 2); in test_write$LByteBuffer_buffers() 2950 assertFalse(buffers[0].isDirect()); in test_write$LByteBuffer_buffers() 2951 assertTrue(buffers[0].hasArray()); in test_write$LByteBuffer_buffers() 2953 buffers[1] = ByteBuffer.wrap(data, 2, 4).asReadOnlyBuffer(); in test_write$LByteBuffer_buffers() [all …]
|
D | FileChannelTest.java | 1321 ByteBuffer[] buffers = new ByteBuffer[2]; in test_read$LByteBuffer_mock() local 1322 mockChannel.read(buffers); in test_read$LByteBuffer_mock()
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 238 …@Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) t… in readv() argument 240 return os.readv(fd, buffers, offsets, byteCounts); in readv() 316 …@Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) … in writev() argument 318 return os.writev(fd, buffers, offsets, byteCounts); in writev()
|
D | ForwardingOs.java | 127 …ptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOEx… in readv() argument 166 …tor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExc… in writev() argument
|
D | Os.java | 120 …public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Errn… in readv() argument 159 …public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Err… in writev() argument
|
D | Posix.java | 169 …public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thro… in readv() argument 261 …public native int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thr… in writev() argument
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 360 … fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExcept… in readv() argument 524 …fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExcepti… in writev() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 1172 static jint Posix_readv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offse… in Posix_readv() argument 1173 IoVec<ScopedBytesRW> ioVec(env, env->GetArrayLength(buffers)); in Posix_readv() 1174 if (!ioVec.init(buffers, offsets, byteCounts)) { in Posix_readv() 1526 static jint Posix_writev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offs… in Posix_writev() argument 1527 IoVec<ScopedBytesRO> ioVec(env, env->GetArrayLength(buffers)); in Posix_writev() 1528 if (!ioVec.init(buffers, offsets, byteCounts)) { in Posix_writev()
|