summaryrefslogtreecommitdiff
path: root/libjava/java/nio/Buffer.h
blob: 3b958b4964e3444fe92543110cea2c7a2c3764e5 (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_nio_Buffer__
#define __java_nio_Buffer__

#pragma interface

#include <java/lang/Object.h>
extern "Java"
{
  namespace gnu
  {
    namespace gcj
    {
        class RawData;
    }
  }
  namespace java
  {
    namespace nio
    {
        class Buffer;
    }
  }
}

class java::nio::Buffer : public ::java::lang::Object
{

public: // actually package-private
  Buffer(jint, jint, jint, jint, ::gnu::gcj::RawData *);
public:
  virtual jint capacity();
  virtual ::java::nio::Buffer * clear();
  virtual ::java::nio::Buffer * flip();
  virtual jboolean hasRemaining();
  virtual jboolean isReadOnly() = 0;
  virtual jint limit();
  virtual ::java::nio::Buffer * limit(jint);
  virtual ::java::nio::Buffer * mark();
  virtual jint position();
  virtual ::java::nio::Buffer * position(jint);
  virtual jint remaining();
  virtual ::java::nio::Buffer * reset();
  virtual ::java::nio::Buffer * rewind();
public: // actually package-private
  virtual void checkForUnderflow();
  virtual void checkForUnderflow(jint);
  virtual void checkForOverflow();
  virtual void checkForOverflow(jint);
  virtual void checkIndex(jint);
  virtual void checkIfReadOnly();
  static void checkArraySize(jint, jint, jint);
private:
  jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) cap;
public: // actually package-private
  jint limit__;
  jint pos;
  jint mark__;
  ::gnu::gcj::RawData * address;
public:
  static ::java::lang::Class class$;
};

#endif // __java_nio_Buffer__