2013-12-18 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / libjava / java / nio / MappedByteBufferImpl.h
blob71725bf1ba33cee02b823d625e0e0ab383af57e6
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_nio_MappedByteBufferImpl__
5 #define __java_nio_MappedByteBufferImpl__
7 #pragma interface
9 #include <java/nio/MappedByteBuffer.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace gnu
16 namespace gcj
18 class RawData;
21 namespace java
23 namespace nio
25 class ByteBuffer;
26 class CharBuffer;
27 class DoubleBuffer;
28 class FloatBuffer;
29 class IntBuffer;
30 class LongBuffer;
31 class MappedByteBufferImpl;
32 class ShortBuffer;
37 class java::nio::MappedByteBufferImpl : public ::java::nio::MappedByteBuffer
40 public:
41 MappedByteBufferImpl(::gnu::gcj::RawData *, jint, jboolean);
42 jboolean isReadOnly();
43 jbyte get();
44 ::java::nio::ByteBuffer * put(jbyte);
45 jbyte get(jint);
46 ::java::nio::ByteBuffer * get(JArray< jbyte > *, jint, jint);
47 ::java::nio::ByteBuffer * put(jint, jbyte);
48 ::java::nio::ByteBuffer * compact();
49 jboolean isDirect();
50 ::java::nio::ByteBuffer * slice();
51 private:
52 ::java::nio::ByteBuffer * duplicate(jboolean);
53 public:
54 ::java::nio::ByteBuffer * duplicate();
55 ::java::nio::ByteBuffer * asReadOnlyBuffer();
56 ::java::nio::CharBuffer * asCharBuffer();
57 ::java::nio::ShortBuffer * asShortBuffer();
58 ::java::nio::IntBuffer * asIntBuffer();
59 ::java::nio::LongBuffer * asLongBuffer();
60 ::java::nio::FloatBuffer * asFloatBuffer();
61 ::java::nio::DoubleBuffer * asDoubleBuffer();
62 jchar getChar();
63 ::java::nio::ByteBuffer * putChar(jchar);
64 jchar getChar(jint);
65 ::java::nio::ByteBuffer * putChar(jint, jchar);
66 jshort getShort();
67 ::java::nio::ByteBuffer * putShort(jshort);
68 jshort getShort(jint);
69 ::java::nio::ByteBuffer * putShort(jint, jshort);
70 jint getInt();
71 ::java::nio::ByteBuffer * putInt(jint);
72 jint getInt(jint);
73 ::java::nio::ByteBuffer * putInt(jint, jint);
74 jlong getLong();
75 ::java::nio::ByteBuffer * putLong(jlong);
76 jlong getLong(jint);
77 ::java::nio::ByteBuffer * putLong(jint, jlong);
78 jfloat getFloat();
79 ::java::nio::ByteBuffer * putFloat(jfloat);
80 jfloat getFloat(jint);
81 ::java::nio::ByteBuffer * putFloat(jint, jfloat);
82 jdouble getDouble();
83 ::java::nio::ByteBuffer * putDouble(jdouble);
84 jdouble getDouble(jint);
85 ::java::nio::ByteBuffer * putDouble(jint, jdouble);
86 public: // actually package-private
87 void unmapImpl();
88 jboolean isLoadedImpl();
89 void loadImpl();
90 void forceImpl();
91 private:
92 jboolean __attribute__((aligned(__alignof__( ::java::nio::MappedByteBuffer)))) readOnly;
93 public:
94 ::gnu::gcj::RawData * implPtr;
95 jlong implLen;
96 static ::java::lang::Class class$;
99 #endif // __java_nio_MappedByteBufferImpl__