org.endurox.TypedCarray Class Reference
List of all members.
Detailed Description
C Byte array buffer. The length handling strategy is following:
- The actual length is stored in TypedBuffer.len
- When allocating from Java side, the TypedBuffer.len holds the infos about actual data length
- When buffer is received from XATMI dispatcher / service call, also the actual data length is installed here in java.
Constructor & Destructor Documentation
org.endurox.TypedCarray.TypedCarray |
( |
AtmiCtx |
ctx, |
|
|
boolean |
doFinalize, |
|
|
long |
cPtr, |
|
|
long |
len | |
|
) |
| | |
Initialize Carray buffer
- Parameters:
-
| ctx[in] | ATMI Context allocated this method |
| doFinalize[in] | Should the buffer be deallocated automatically |
| cPtr[in] | C pointer to allocated block |
| len[in] | Conditional buffer length |
Member Function Documentation
native byte [] org.endurox.TypedCarray.getBytes |
( |
|
) |
|
Get C array value
- Returns:
- Byte array
native void org.endurox.TypedCarray.setBytes |
( |
byte[] |
b |
) |
|
Set C byte array value
- Parameters:
-
| b | byte array to set value |