To write data to the sbspace of a smart large object, use one of the following smart-large-object functions:
You can obtain the current LO seek position with the mi_lo_tell( ) function, or you can set the LO seek position with the mi_lo_seek( ) function.
You specify the seek position at which to begin the write operation as arguments to mi_lo_writewithseek( ).
These functions both write a specified number of bytes from a user-defined character buffer to the open smart large object that an LO file descriptor identifies. The smart-large-object optimizer determines the default extent size for the smart large object based on the amount of data that you write. Therefore, try to maximum the amount of data you write in a single call to mi_lo_write( ) or mi_lo_writewithseek( ).
In addition to a write operation, you might also need to perform the following operations on the open smart large object.
Task | Smart-Large-Object
Function |
More Information |
---|---|---|
Read data from the sbspace | mi_lo_read( ),
mi_lo_readwithseek( ) |
page Reading Data from a Smart Large Object |
Obtain the LO seek position | mi_lo_tell( ) | page Reading Data from a Smart Large Object |
Obtain status information | mi_lo_stat( ) | page Obtaining Status Information |
Obtain storage characteristics | mi_lo_stat_cspec( ) | page Obtaining Storage Characteristics |