2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_nio_MappedByteBufferImpl__
5 #define __java_nio_MappedByteBufferImpl__
9 #include <java/nio/MappedByteBuffer.h>
10 #include <gcj/array.h>
31 class MappedByteBufferImpl;
37 class java::nio::MappedByteBufferImpl : public ::java::nio::MappedByteBuffer
41 MappedByteBufferImpl(::gnu::gcj::RawData *, jint, jboolean);
42 jboolean isReadOnly();
44 ::java::nio::ByteBuffer * put(jbyte);
46 ::java::nio::ByteBuffer * get(JArray< jbyte > *, jint, jint);
47 ::java::nio::ByteBuffer * put(jint, jbyte);
48 ::java::nio::ByteBuffer * compact();
50 ::java::nio::ByteBuffer * slice();
52 ::java::nio::ByteBuffer * duplicate(jboolean);
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();
63 ::java::nio::ByteBuffer * putChar(jchar);
65 ::java::nio::ByteBuffer * putChar(jint, jchar);
67 ::java::nio::ByteBuffer * putShort(jshort);
68 jshort getShort(jint);
69 ::java::nio::ByteBuffer * putShort(jint, jshort);
71 ::java::nio::ByteBuffer * putInt(jint);
73 ::java::nio::ByteBuffer * putInt(jint, jint);
75 ::java::nio::ByteBuffer * putLong(jlong);
77 ::java::nio::ByteBuffer * putLong(jint, jlong);
79 ::java::nio::ByteBuffer * putFloat(jfloat);
80 jfloat getFloat(jint);
81 ::java::nio::ByteBuffer * putFloat(jint, jfloat);
83 ::java::nio::ByteBuffer * putDouble(jdouble);
84 jdouble getDouble(jint);
85 ::java::nio::ByteBuffer * putDouble(jint, jdouble);
86 public: // actually package-private
88 jboolean isLoadedImpl();
91 jboolean __attribute__((aligned(__alignof__( ::java::nio::MappedByteBuffer)))) readOnly;
93 ::gnu::gcj::RawData * implPtr;
95 static ::java::lang::Class class$;
98 #endif // __java_nio_MappedByteBufferImpl__