Home
last modified time | relevance | path

Searched refs:mapMode (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/nio/
DMappedByteBuffer.java40 final MapMode mapMode; field in MappedByteBuffer
43 MappedByteBuffer(MemoryBlock block, int capacity, MapMode mapMode, long effectiveDirectAddress) { in MappedByteBuffer() argument
45 this.mapMode = mapMode; in MappedByteBuffer()
107 if (mapMode == MapMode.READ_WRITE) { in force()
122 if (mapMode == null) { in checkIsMapped()
DFileChannelImpl.java220 … public final MappedByteBuffer map(MapMode mapMode, long position, long size) throws IOException { in map() argument
222 if (mapMode == null) { in map()
230 if (mapMode != MapMode.READ_ONLY) { in map()
257 MemoryBlock block = MemoryBlock.mmap(fd, alignment, size + offset, mapMode); in map()
258 … return new DirectByteBuffer(block, (int) size, offset, (mapMode == MapMode.READ_ONLY), mapMode); in map()
DMemoryBlock.java100 …public static MemoryBlock mmap(FileDescriptor fd, long offset, long size, MapMode mapMode) throws … in mmap() argument
111 if (mapMode == MapMode.PRIVATE) { in mmap()
114 } else if (mapMode == MapMode.READ_ONLY) { in mmap()
DDirectByteBuffer.java32 …irectByteBuffer(MemoryBlock block, int capacity, int offset, boolean isReadOnly, MapMode mapMode) { in DirectByteBuffer() argument
33 super(block, capacity, mapMode, block.toLong() + offset); in DirectByteBuffer()
54 …buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); in copy()
83 return new DirectByteBuffer(block, remaining(), offset + position, isReadOnly, mapMode); in slice()