Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / libjava / java / nio / ByteBufferImpl.h
blob12621a0c74fffa75ee51ab1598f7a6e45b3d2ed4
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_nio_ByteBufferImpl__
5 #define __java_nio_ByteBufferImpl__
7 #pragma interface
9 #include <java/nio/ByteBuffer.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace nio
18 class ByteBuffer;
19 class ByteBufferImpl;
20 class CharBuffer;
21 class DoubleBuffer;
22 class FloatBuffer;
23 class IntBuffer;
24 class LongBuffer;
25 class ShortBuffer;
30 class java::nio::ByteBufferImpl : public ::java::nio::ByteBuffer
33 public: // actually package-private
34 ByteBufferImpl(JArray< jbyte > *, jint, jint, jint, jint, jint, jboolean);
35 public:
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);
48 public:
49 ::java::nio::ByteBuffer * compact();
50 jboolean isDirect();
51 jbyte get();
52 ::java::nio::ByteBuffer * get(JArray< jbyte > *, jint, jint);
53 ::java::nio::ByteBuffer * put(JArray< jbyte > *, jint, jint);
54 ::java::nio::ByteBuffer * put(jbyte);
55 jbyte get(jint);
56 ::java::nio::ByteBuffer * put(jint, jbyte);
57 jchar getChar();
58 ::java::nio::ByteBuffer * putChar(jchar);
59 jchar getChar(jint);
60 ::java::nio::ByteBuffer * putChar(jint, jchar);
61 jshort getShort();
62 ::java::nio::ByteBuffer * putShort(jshort);
63 jshort getShort(jint);
64 ::java::nio::ByteBuffer * putShort(jint, jshort);
65 jint getInt();
66 ::java::nio::ByteBuffer * putInt(jint);
67 jint getInt(jint);
68 ::java::nio::ByteBuffer * putInt(jint, jint);
69 jlong getLong();
70 ::java::nio::ByteBuffer * putLong(jlong);
71 jlong getLong(jint);
72 ::java::nio::ByteBuffer * putLong(jint, jlong);
73 jfloat getFloat();
74 ::java::nio::ByteBuffer * putFloat(jfloat);
75 jfloat getFloat(jint);
76 ::java::nio::ByteBuffer * putFloat(jint, jfloat);
77 jdouble getDouble();
78 ::java::nio::ByteBuffer * putDouble(jdouble);
79 jdouble getDouble(jint);
80 ::java::nio::ByteBuffer * putDouble(jint, jdouble);
81 private:
82 jboolean __attribute__((aligned(__alignof__( ::java::nio::ByteBuffer)))) readOnly;
83 public:
84 static ::java::lang::Class class$;
87 #endif // __java_nio_ByteBufferImpl__