|
The mi_lo_from_buffer() function copies a specified number of bytes from a user-defined buffer to a smart large object.
The mi_lo_from_buffer() function copies up to size bytes from the user-defined buffer into a smart large object that the LO_hdl LO handle references. The write operation to the smart large object starts at a zero-byte offset. This function allows you to write data to a smart large object without opening the smart large object. To use the mi_lo_from_buffer() function to copy data, the smart large object must already exist in an sbspace.
The mi_lo_from_buffer() function is a constructor function for the LO handle.
The mi_lo_from_buffer() function allocates a new LO handle in the current memory duration.
>=0 | is the number of bytes copied from the user-defined buffer to the smart large object. This value should always be equal to the size value. |
MI_ERROR | indicates that the function was not successful. |
See the description of the mi_lo_to_buffer() function.