2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_nio_ByteBufferImpl__
5 #define __java_nio_ByteBufferImpl__
9 #include <java/nio/ByteBuffer.h>
10 #include <gcj/array.h>
30 class java::nio::ByteBufferImpl
: public ::java::nio::ByteBuffer
33 public: // actually package-private
34 ByteBufferImpl(JArray
< jbyte
> *, jint
, jint
, jint
, jint
, jint
, jboolean
);
36 ::java::nio::CharBuffer
* asCharBuffer();
37 ::java::nio::ShortBuffer
* asShortBuffer();
38 ::java::nio::IntBuffer
* asIntBuffer();
39 ::java::nio::LongBuffer
* asLongBuffer();
40 ::java::nio::FloatBuffer
* asFloatBuffer();
41 ::java::nio::DoubleBuffer
* asDoubleBuffer();
42 jboolean
isReadOnly();
43 ::java::nio::ByteBuffer
* slice();
44 ::java::nio::ByteBuffer
* duplicate();
45 ::java::nio::ByteBuffer
* asReadOnlyBuffer();
46 public: // actually package-private
47 void shiftDown(jint
, jint
, jint
);
49 ::java::nio::ByteBuffer
* compact();
52 ::java::nio::ByteBuffer
* get(JArray
< jbyte
> *, jint
, jint
);
53 ::java::nio::ByteBuffer
* put(JArray
< jbyte
> *, jint
, jint
);
54 ::java::nio::ByteBuffer
* put(jbyte
);
56 ::java::nio::ByteBuffer
* put(jint
, jbyte
);
58 ::java::nio::ByteBuffer
* putChar(jchar
);
60 ::java::nio::ByteBuffer
* putChar(jint
, jchar
);
62 ::java::nio::ByteBuffer
* putShort(jshort
);
63 jshort
getShort(jint
);
64 ::java::nio::ByteBuffer
* putShort(jint
, jshort
);
66 ::java::nio::ByteBuffer
* putInt(jint
);
68 ::java::nio::ByteBuffer
* putInt(jint
, jint
);
70 ::java::nio::ByteBuffer
* putLong(jlong
);
72 ::java::nio::ByteBuffer
* putLong(jint
, jlong
);
74 ::java::nio::ByteBuffer
* putFloat(jfloat
);
75 jfloat
getFloat(jint
);
76 ::java::nio::ByteBuffer
* putFloat(jint
, jfloat
);
78 ::java::nio::ByteBuffer
* putDouble(jdouble
);
79 jdouble
getDouble(jint
);
80 ::java::nio::ByteBuffer
* putDouble(jint
, jdouble
);
82 jboolean
__attribute__((aligned(__alignof__( ::java::nio::ByteBuffer
)))) readOnly
;
84 static ::java::lang::Class
class$
;
87 #endif // __java_nio_ByteBufferImpl__