Append to a BLOB field.
MCO_RET mco_uda_blob_append( /* IN */ const mco_uda_object_handle_p obj,
/* IN */ unsigned short field_no,
/* IN */ const void * val,
/* IN */ uint4 size );
obj
field_no
struct_info.field_count - 1).val
size
This function appends data to the end of the specified BLOB field.
MCO_S_OK
field_no - field not found in this class or struct.MCO_E_ILLEGAL_PARAM
Application snippet:
int main(int argc, char* argv[])
{
MCO_RET rc;
mco_uda_object_handle_t obj;
unsigned short blob_field_no = 1;
void * append_buf;
uint4 append_size = 1024;
...
append_buf = malloc(append_size);
/* Copy BLOB data into append_buf */
...
rc = mco_uda_blob_append( &obj, blob_field_no, append_buf, append_size );
...
}