Availability:C-language interface function
bool PL_put_blob(term_t
t, void *blob, size_t len, PL_blob_t *type)Store the described blob in t. The return value indicates
whether a new blob was allocated (FALSE
) or the blob is a
reference to an existing blob (TRUE
). Reporting
new/existing can be used to deal with external objects having their own
reference counts. If the return is TRUE
this reference
count must be incremented, and it must be decremented on blob
destruction callback. See also
PL_put_atom_nchars().