mi_integer mi_stream_seek(strm_desc, offset, whence) MI_STREAM *strm_desc; mi_int8 *offset; mi_integer whence;
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
No | Yes |
The mi_stream_seek( ) function uses the whence and offset arguments to determine the new seek position of the stream that strm_desc references, as follows:
Valid values include the following whence constants.
This offset value can be negative for all values of whence. For more information on how to access eight-bit (INT8) integers, see the IBM Informix: DataBlade API Programmer's Guide.
Use the associated stream-open function to obtain the stream descriptor for one of these data streams. You can then pass this stream descriptor to mi_stream_seek( ) to set the seek position on any of these streams. You can also implement an mi_stream_seek( ) function for your own user-defined stream. For more information, see the IBM Informix: DataBlade API Programmer's Guide.
On success, mi_stream_seek( ) returns MI_OK. To obtain the new stream seek position, use mi_stream_tell( ).
See also the descriptions of mi_stream_open_fio( ), mi_stream_open_mi_lvarchar( ), mi_stream_open_str( ), mi_stream_read( ), mi_stream_setpos( ), mi_stream_tell( ), and mi_stream_write( ).