endurox-java
Public Member Functions | List of all members
org.endurox.TypedCarray Class Reference

Public Member Functions

 TypedCarray (AtmiCtx ctx, boolean doFinalize, long cPtr, long len)
 
native void setBytes (byte[] b)
 
native byte[] getBytes ()
 
- Public Member Functions inherited from org.endurox.TypedBuffer
native void tprealloc (long size)
 
 TypedBuffer (AtmiCtx ctx, boolean doFinalize, long cPtr, long len)
 
void setAtmiCtx (AtmiCtx ctx)
 
void cleanup ()
 
void setDoFinalize (boolean b)
 
native TpTypesResult tptypes ()
 

Additional Inherited Members

- Protected Member Functions inherited from org.endurox.TypedBuffer
void finalize () throws Throwable
 

Detailed Description

C Byte array buffer. The length handling strategy is following:

Constructor & Destructor Documentation

◆ TypedCarray()

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

◆ getBytes()

native byte [] org.endurox.TypedCarray.getBytes ( )

Get C array value

Returns
Byte array

◆ setBytes()

native void org.endurox.TypedCarray.setBytes ( byte[]  b)

Set C byte array value

Parameters
bbyte array to set value