In the documentation for OCIAQDeq() it states:
The application may choose to pass
NULL for payload the first time
OCIAQDeq() is called, and let the OCI
allocate the memory for the payload.
It can then use a pointer to that
previously allocated memory in
subsequent calls to OCIAQDeq().
Does anyone have an example of how to use this feature? If I pass in NULL, where do I subsequently get the pointer from? Thanks!
This piece of the documentation refers to the
payloadparameter of the function which is a double pointer:dvoid **according to the followingSince it’s a double pointer the allocated buffer will be passed back to the caller via the parameter passed in. For example
Because
NULLis passed the function will allocate a buffer and store it into thepBuffervalue which can be later re-used