IPB_Session interface:
NewBlob method
Description
Creates a new blob and duplicates a buffer for the new blob
data.
Syntax
NewBlob (const void* bin, pblong len)
Argument
|
Description
|
bin
|
A void pointer that points to the source
buffer
|
len
|
The length in bytes of the data in the
buffer
|
Return Values
pbblob.
Examples
If the blob value in the PBCallInfo structure is null,
this code creates a new blob value with four bytes in the pArguments array;
otherwise, it sets the blob value in the pArguments array
to the value in the PBCallInfo structure:
if (ci->pArgs->GetAt(i)->IsNull())
pArguments[i].blob_val =
Session->NewBlob("null", 4);
else
pArguments[i].blob_val =
ci->pArgs->GetAt(i)->GetBlob();
Usage
The buffer containing the new blob data is freed when PopLocalFrame is
called.
See Also