CACAO
Public Member Functions | Static Private Attributes
java_nio_Buffer Class Reference

GNU Classpath java/nio/Buffer. More...

Inheritance diagram for java_nio_Buffer:
java_lang_Object FieldAccess

Public Member Functions

 java_nio_Buffer (java_handle_t *h)
 
int32_t get_cap () const
 
- Public Member Functions inherited from java_lang_Object
 java_lang_Object ()
 
 java_lang_Object (java_handle_t *h)
 
virtual ~java_lang_Object ()
 
virtual java_handle_tget_handle () const
 
vftbl_tget_vftbl () const
 
classinfoget_Class () const
 
int32_t get_hashcode () const
 
bool is_null () const
 
bool is_non_null () const
 

Static Private Attributes

static const off_t offset_cap = MEMORY_ALIGN(sizeof(java_object_t), sizeof(int32_t))
 
static const off_t offset_limit = MEMORY_ALIGN(offset_cap + sizeof(int32_t), sizeof(int32_t))
 
static const off_t offset_pos = MEMORY_ALIGN(offset_limit + sizeof(int32_t), sizeof(int32_t))
 
static const off_t offset_mark = MEMORY_ALIGN(offset_pos + sizeof(int32_t), sizeof(int32_t))
 
static const off_t offset_address = MEMORY_ALIGN(offset_mark + sizeof(int32_t), SIZEOF_VOID_P)
 

Additional Inherited Members

- Protected Attributes inherited from java_lang_Object
java_handle_t_handle
 
- Private Member Functions inherited from FieldAccess
template<>
java_handle_tget (java_handle_t *h, const off_t offset)
 
template<>
void set (java_handle_t *h, const off_t offset, java_handle_t *value)
 
template<>
java_handle_tget_volatile (java_handle_t *h, const off_t offset)
 
template<>
void set_volatile (java_handle_t *h, const off_t offset, java_handle_t *value)
 
- Static Private Member Functions inherited from FieldAccess
template<class T >
static T get (java_handle_t *h, const off_t offset)
 
template<class T >
static void set (java_handle_t *h, const off_t offset, T value)
 
template<class T >
static T get_volatile (java_handle_t *h, const off_t offset)
 
template<class T >
static void set_volatile (java_handle_t *h, const off_t offset, T value)
 

Detailed Description

GNU Classpath java/nio/Buffer.

Object layout:

0. object header

  1. int cap;
  2. int limit;
  3. int pos;
  4. int mark;
  5. gnu.classpath.Pointer address;

Definition at line 1687 of file javaobjects.hpp.

Constructor & Destructor Documentation

java_nio_Buffer::java_nio_Buffer ( java_handle_t h)
inline

Definition at line 1698 of file javaobjects.hpp.

Member Function Documentation

int32_t java_nio_Buffer::get_cap ( ) const
inline

Definition at line 1704 of file javaobjects.hpp.

Field Documentation

const off_t java_nio_Buffer::offset_address = MEMORY_ALIGN(offset_mark + sizeof(int32_t), SIZEOF_VOID_P)
staticprivate

Definition at line 1695 of file javaobjects.hpp.

const off_t java_nio_Buffer::offset_cap = MEMORY_ALIGN(sizeof(java_object_t), sizeof(int32_t))
staticprivate

Definition at line 1691 of file javaobjects.hpp.

const off_t java_nio_Buffer::offset_limit = MEMORY_ALIGN(offset_cap + sizeof(int32_t), sizeof(int32_t))
staticprivate

Definition at line 1692 of file javaobjects.hpp.

const off_t java_nio_Buffer::offset_mark = MEMORY_ALIGN(offset_pos + sizeof(int32_t), sizeof(int32_t))
staticprivate

Definition at line 1694 of file javaobjects.hpp.

const off_t java_nio_Buffer::offset_pos = MEMORY_ALIGN(offset_limit + sizeof(int32_t), sizeof(int32_t))
staticprivate

Definition at line 1693 of file javaobjects.hpp.


The documentation for this class was generated from the following file: