public class ByteBuffer
extends com.sun.jna.Structure
Modifier and Type | Class and Description |
---|---|
static class |
ByteBuffer.ByReference |
static class |
ByteBuffer.ByValue |
Modifier and Type | Field and Description |
---|---|
com.sun.jna.Pointer |
array
byte array
C type : l_uint8* |
int |
n
number of bytes read into to the array
C type : l_int32 |
int |
nalloc
size of allocated byte array
C type : l_int32 |
int |
nwritten
number of bytes written from the array
C type : l_int32 |
Constructor and Description |
---|
ByteBuffer() |
ByteBuffer(int nalloc,
int n,
int nwritten,
com.sun.jna.Pointer array) |
ByteBuffer(com.sun.jna.Pointer peer) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<?> |
getFieldOrder() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public int nalloc
public int n
public int nwritten
public com.sun.jna.Pointer array
public ByteBuffer()
public ByteBuffer(int nalloc, int n, int nwritten, com.sun.jna.Pointer array)
nalloc
- size of allocated byte arrayn
- number of bytes read into to the arraynwritten
- number of bytes written from the arrayarray
- byte arraypublic ByteBuffer(com.sun.jna.Pointer peer)