omniClientReferenceContent
Defined in OmniClient.h
-
struct OmniClientContent omniClientReferenceContent(void *buffer, size_t size)
Reference an existing content buffer.
The difference between calling omniClientAllocContent and this function is referencing a buffer prevents the library from taking ownership of the buffer. Therefore you must ensure the buffer exists at least until the library is finished using it.