20 #include <com/avpkit/ferry/Logger.h>
21 #include <com/avpkit/ferry/IBuffer.h>
22 #include <com/avpkit/ferry/Buffer.h>
28 VS_LOG_SETUP(VS_CPP_PACKAGE);
30 namespace com {
namespace avpkit {
namespace ferry
53 return Buffer::make(requestor, bufToWrap, bufferSize, freeFunc, closure);
59 Type type, int32_t numElements,
bool zero)
67 return Buffer::getTypeSize(type);
static VS_API_FERRY Buffer * make(RefCounted *requestor, int32_t bufferSize)
Allocate a new buffer of at least bufferSize.
Allows Java code to get data from a native buffers, and optionally modify native memory directly.
static IBuffer * make(RefCounted *requestor, void *bufToWrap, int32_t bufferSize, FreeFunc freeFunc, void *closure)
Allocate a new buffer by wrapping a native buffer.
static int32_t getTypeSize(Type type)
Returns the size, in bytes, of elements of given Type.
Parent of all Ferry objects – it mains reference counts in native code.
This library contains routines used by AVPKit libraries for "ferry"ing Java objects to and from nativ...
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...