Home
last modified time | relevance | path

Searched refs:NioUtils (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/nio/
DNioUtils.java29 public final class NioUtils { class
30 private NioUtils() { in NioUtils() method in NioUtils
DIoVec.java63 ioBuffers[i] = NioUtils.unsafeArray(b); in init()
64 offsets[i] = NioUtils.unsafeArrayOffset(b) + b.position(); in init()
DByteBuffer.java790 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()
DFileChannelImpl.java392 NioUtils.freeDirectBuffer(buffer); in transferFrom()
449 NioUtils.freeDirectBuffer(buffer); in transferTo()
/libcore/luni/src/main/java/java/io/
DFileOutputStream.java21 import java.nio.NioUtils;
104 this.channel = NioUtils.newFileChannel(this, fd, mode); in FileOutputStream()
171 channel = NioUtils.newFileChannel(this, fd, mode); in getChannel()
DFileInputStream.java24 import java.nio.NioUtils;
159 channel = NioUtils.newFileChannel(this, fd, O_RDONLY); in getChannel()
DRandomAccessFile.java25 import java.nio.NioUtils;
192 channel = NioUtils.newFileChannel(this, fd, mode); in getChannel()
/libcore/luni/src/main/java/libcore/io/
DPosix.java42 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()
DMemoryMappedFile.java25 import java.nio.NioUtils;
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java35 import java.nio.NioUtils;
905 NioUtils.freeDirectBuffer(b1); in testFreed()
921 NioUtils.freeDirectBuffer(b); // should be able to free twice in testFreed()