Searched refs:NioUtils (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/main/java/java/nio/ |
D | NioUtils.java | 29 public final class NioUtils { class 30 private NioUtils() { in NioUtils() method in NioUtils
|
D | IoVec.java | 63 ioBuffers[i] = NioUtils.unsafeArray(b); in init() 64 offsets[i] = NioUtils.unsafeArrayOffset(b) + b.position(); in init()
|
D | ByteBuffer.java | 790 Object srcObject = src.isDirect() ? src : NioUtils.unsafeArray(src); in put() 793 srcOffset += NioUtils.unsafeArrayOffset(src); in put() 797 Object dstObject = dst.isDirect() ? dst : NioUtils.unsafeArray(dst); in put() 800 dstOffset += NioUtils.unsafeArrayOffset(dst); in put()
|
D | FileChannelImpl.java | 392 NioUtils.freeDirectBuffer(buffer); in transferFrom() 449 NioUtils.freeDirectBuffer(buffer); in transferTo()
|
/libcore/luni/src/main/java/java/io/ |
D | FileOutputStream.java | 21 import java.nio.NioUtils; 104 this.channel = NioUtils.newFileChannel(this, fd, mode); in FileOutputStream() 171 channel = NioUtils.newFileChannel(this, fd, mode); in getChannel()
|
D | FileInputStream.java | 24 import java.nio.NioUtils; 159 channel = NioUtils.newFileChannel(this, fd, O_RDONLY); in getChannel()
|
D | RandomAccessFile.java | 25 import java.nio.NioUtils; 192 channel = NioUtils.newFileChannel(this, fd, mode); in getChannel()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Posix.java | 42 import java.nio.NioUtils; 121 …bytesRead = preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posi… in pread() 139 …bytesWritten = pwriteBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + … in pwrite() 157 …bytesRead = readBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posit… in read() 177 …bytesReceived = recvfromBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer)… in recvfrom() 198 …bytesSent = sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + pos… in sendto() 250 …bytesWritten = writeBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + p… in write()
|
D | MemoryMappedFile.java | 25 import java.nio.NioUtils;
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 35 import java.nio.NioUtils; 905 NioUtils.freeDirectBuffer(b1); in testFreed() 921 NioUtils.freeDirectBuffer(b); // should be able to free twice in testFreed()
|