Searched refs:MappedByteBuffer (Results 1 - 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/
H A DMappedByteBuffer.java67 public abstract class MappedByteBuffer class in inherits:ByteBuffer
70 // This is a little bit backwards: By rights MappedByteBuffer should be a
81 MappedByteBuffer(int mark, int pos, int lim, int cap, // package-private method in class:MappedByteBuffer
87 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { method in class:MappedByteBuffer
92 MappedByteBuffer(int mark, int pos, int lim, int cap) { // package-private method in class:MappedByteBuffer
159 public final MappedByteBuffer load() {
203 public final MappedByteBuffer force() {
H A DDirectByteBuffer.java38 public class DirectByteBuffer extends MappedByteBuffer implements DirectBuffer {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DMappedByteBufferTest.java28 import java.nio.MappedByteBuffer;
47 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc
77 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
80 assertNotNull("MappedByteBuffer created from empty file should not be null",
85 assertEquals("MappedByteBuffer created from empty file should have 0 capacity",
88 assertFalse("MappedByteBuffer from empty file shouldn't be backed by an array ",
94 fail("Calling MappedByteBuffer.get() on empty buffer should throw a BufferUnderflowException");
124 * @tests {@link java.nio.MappedByteBuffer#force()}
130 MappedByteBuffer mmbRead = fileChannelRead.map(MapMode.READ_ONLY, 0,
137 MappedByteBuffer resultRea
[all...]
/libcore/ojluni/src/main/native/
H A DMappedByteBuffer.c101 NATIVE_METHOD(MappedByteBuffer, isLoaded0, "(JJI)Z"),
102 NATIVE_METHOD(MappedByteBuffer, load0, "(JJ)V"),
103 NATIVE_METHOD(MappedByteBuffer, force0, "(Ljava/io/FileDescriptor;JJ)V"),
107 jniRegisterNativeMethods(env, "java/nio/MappedByteBuffer", gMethods, NELEM(gMethods));
H A Dopenjdksub.mk43 MappedByteBuffer.c \
/libcore/ojluni/src/main/java/java/nio/channels/
H A DFileChannel.java30 import java.nio.MappedByteBuffer;
359 * {@link MappedByteBuffer <i>mapped byte buffer</i>} obtained by
361 * MappedByteBuffer#force force} method of the mapped byte buffer will
678 * <p> The {@link MappedByteBuffer <i>mapped byte buffer</i>}
735 * @see java.nio.MappedByteBuffer
737 public abstract MappedByteBuffer map(MapMode mode,
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java34 import java.nio.MappedByteBuffer;
55 MappedByteBuffer result = ch.map(FileChannel.MapMode.READ_WRITE, 0, size);
61 * Try to create a {@link MappedByteBuffer} from /dev/zero, to see if
67 MappedByteBuffer mbb = raf.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, 65536);
92 MappedByteBuffer mbb = raf.getChannel()
99 // Put all "(byte) 1"s into the /dev/zero MappedByteBuffer.
891 MappedByteBuffer notMapped = (MappedByteBuffer) ByteBuffer.allocateDirect(1);
908 MappedByteBuffer mapped = (MappedByteBuffer) allocateMappe
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileChannelImpl.java33 import java.nio.MappedByteBuffer;
492 MappedByteBuffer dbb = map(MapMode.READ_ONLY, position, size);
613 MappedByteBuffer bb = src.map(MapMode.READ_ONLY, p, size);
829 private static void unmap(MappedByteBuffer bb) {
839 public MappedByteBuffer map(MapMode mode, long position, long size)
H A DUtil.java34 import java.nio.MappedByteBuffer;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DFileChannelTest.java30 import java.nio.MappedByteBuffer;
1820 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.READ_ONLY,
1831 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.PRIVATE, 0,
1843 MappedByteBuffer mapped = null;
1875 MappedByteBuffer mapped = readOnlyFileChannel.map(MapMode.READ_ONLY,
1887 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.PRIVATE, 0,
1911 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.PRIVATE, 10,
1922 MappedByteBuffer mapped = null;
1951 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.READ_WRITE,
1990 MappedByteBuffer mappe
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldFileChannelTest.java27 import java.nio.MappedByteBuffer;
/libcore/
H A Dopenjdk_java_files.mk340 ojluni/src/main/java/java/nio/MappedByteBuffer.java \

Completed in 216 milliseconds