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