This function retrieves a value from a blob.
MCO_RET classname_fieldname_get( /*IN*/ classname *handle, /*IN*/ uint4 start_offset, /*OUT*/ char *dest, /*IN*/ uint4 dest_size, /*OUT*/ uint4 *len);
handle | A pointer to a classname handle |
start_offset |
The offset from the start of the blob from where reading will begin |
dest |
A pointer to a buffer to receive the element’s contents |
dest_size |
The size of the dest buffer |
len |
A uint4 pointer to receive the number of bytes written to dest |
This form of the function applies to elements that are of type blob.
MCO_S_OK | The value was put successfully |
MCO_E_EMPTYBLOB | Blob was not been written |
MCO_E_TRANSACT |
|
MCO_ERR_OBJECT_HANDLE |
|