informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_lo_from_buffer()

The mi_lo_from_buffer() function copies a specified number of bytes from a user-defined buffer to a smart large object.

Syntax

Usage

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.

Return Values

>=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.

Related Topics

See the description of the mi_lo_to_buffer() function.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved