INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

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 the smart large object that the LO_hdl 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.

Return Values

>=0

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

The function was not successful.

Related Topics

See the description of the mi_lo_to_buffer() function.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.