| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | C.
Structure is used for wrapping C structs in Java objects. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static C | |
| pack-priv native long | Returns: the memory address referenced by ba direct ByteBuffer b)Finds the memory address pointed to by a direct ByteBuffer |
| pack-priv native ByteBuffer | Returns: a new ByteBuffer providing direct access to the requested memory regionThe memory address for which to create a ByteBuffer. ptr, int The byte length of memory to be wrapped in the ByteBuffer. size)Create a new ByteBuffer that provides access to the memory at a given address |
| instance | back to summary |
|---|---|
| private static C instance | |
| C | back to summary |
|---|---|
| private C() | |
| getC | back to summary |
|---|---|
| pack-priv static C getC() Obtains the single instance of LinuxSystem. | |
| GetDirectBufferAddress | back to summary |
|---|---|
| pack-priv native long GetDirectBufferAddress(ByteBuffer b) Finds the memory address pointed to by a direct ByteBuffer
| |
| NewDirectByteBuffer | back to summary |
|---|---|
| pack-priv native ByteBuffer NewDirectByteBuffer(long ptr, int size) Create a new ByteBuffer that provides access to the memory at a given address
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ByteBuffer | |
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | Structure(long
The memory address of the C struct to wrap ptr)Create a new Structure wrapping the C struct at the given location in memory |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract int |
| Structure | back to summary |
|---|---|
| protected Structure() Create a new Structure wrapping a new C struct | |
| Structure | back to summary |
|---|---|
| protected Structure(long ptr) Create a new Structure wrapping the C struct at the given location in memory
| |
| sizeof | back to summary |
|---|---|
| pack-priv abstract int sizeof() The size of the C struct in bytes. Must be overridden by subclasses. | |