23 #include <com/avpkit/ferry/Ferry.h>
24 #include <com/avpkit/ferry/RefCounted.h>
58 (*FreeFunc)(
void * mem,
void *closure);
91 make(
RefCounted* requestor,
void * bufToWrap, int32_t bufferSize,
92 FreeFunc freeFunc,
void * closure);
160 static int32_t getTypeSize(Type type);
187 Type type, int32_t numElements,
bool zero);
Allows Java code to get data from a native buffers, and optionally modify native memory directly.
virtual void setType(Type type)=0
Reset the buffer type to a new type.
virtual void * getBytes(int32_t offset, int32_t length)=0
Returns up to length bytes, starting at offset in the underlying buffer we're managing.
virtual int32_t getBufferSize()=0
Get the current maximum number of bytes that can be safely placed in this buffer.
virtual int32_t getSize()=0
Returns the size, in units of getType() of this buffer.
virtual Type getType()=0
Get the type this buffer was created as.
Parent of all Ferry objects – it mains reference counts in native code.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...