CACAO
Public Member Functions | Static Private Attributes
java_nio_DirectByteBufferImpl Class Reference

GNU Classpath java/nio/DirectByteBufferImpl. More...

Inheritance diagram for java_nio_DirectByteBufferImpl:
java_lang_Object FieldAccess

Public Member Functions

 java_nio_DirectByteBufferImpl (java_handle_t *h)
 
java_handle_tget_address () 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)
 
static const off_t offset_endian = MEMORY_ALIGN(offset_address + SIZEOF_VOID_P, SIZEOF_VOID_P)
 
static const off_t offset_backing_buffer = MEMORY_ALIGN(offset_endian + SIZEOF_VOID_P, SIZEOF_VOID_P)
 
static const off_t offset_array_offset = MEMORY_ALIGN(offset_backing_buffer + SIZEOF_VOID_P, sizeof(int32_t))
 
static const off_t offset_owner = MEMORY_ALIGN(offset_array_offset + 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/DirectByteBufferImpl.

Object layout:

0. object header

  1. int cap;
  2. int limit;
  3. int pos;
  4. int mark;
  5. gnu.classpath.Pointer address;
  6. java.nio.ByteOrder endian;
  7. byte[] backing_buffer;
  8. int array_offset;
  9. java.lang.Object owner;

Definition at line 1726 of file javaobjects.hpp.

Constructor & Destructor Documentation

java_nio_DirectByteBufferImpl::java_nio_DirectByteBufferImpl ( java_handle_t h)
inline

Definition at line 1741 of file javaobjects.hpp.

Member Function Documentation

java_handle_t * java_nio_DirectByteBufferImpl::get_address ( ) const
inline

Definition at line 1748 of file javaobjects.hpp.

Field Documentation

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

Definition at line 1734 of file javaobjects.hpp.

const off_t java_nio_DirectByteBufferImpl::offset_array_offset = MEMORY_ALIGN(offset_backing_buffer + SIZEOF_VOID_P, sizeof(int32_t))
staticprivate

Definition at line 1737 of file javaobjects.hpp.

const off_t java_nio_DirectByteBufferImpl::offset_backing_buffer = MEMORY_ALIGN(offset_endian + SIZEOF_VOID_P, SIZEOF_VOID_P)
staticprivate

Definition at line 1736 of file javaobjects.hpp.

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

Definition at line 1730 of file javaobjects.hpp.

const off_t java_nio_DirectByteBufferImpl::offset_endian = MEMORY_ALIGN(offset_address + SIZEOF_VOID_P, SIZEOF_VOID_P)
staticprivate

Definition at line 1735 of file javaobjects.hpp.

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

Definition at line 1731 of file javaobjects.hpp.

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

Definition at line 1733 of file javaobjects.hpp.

const off_t java_nio_DirectByteBufferImpl::offset_owner = MEMORY_ALIGN(offset_array_offset + sizeof(int32_t), SIZEOF_VOID_P)
staticprivate

Definition at line 1738 of file javaobjects.hpp.

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

Definition at line 1732 of file javaobjects.hpp.


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