mi_integer mi_streamread_int8(strm_desc, int8_dptr) MI_STREAM *strm_desc; mi_int8 **int8_dptr;
The mi_streamread_int8( ) function reads an mi_int8 value from the stream that strm_desc references. The function reads the mi_int8 value from the stream and puts the address of the value in the buffer that *int8_dptr references. The read operation begins at the current stream seek position. You can use mi_stream_tell( ) or mi_stream_getpos( ) to obtain this seek position.
When *int8_dptr points to NULL, mi_streamread_int8( ) allocates the memory for the buffer in the current memory duration. Otherwise, the function assumes that you have allocated the memory that *int8_dptr references.
The mi_streamread_int8( ) function is useful in a streamread( ) support function of an opaque data type that contains an mi_int8 value.
See also the descriptions of mi_stream_getpos( ), mi_stream_read( ), mi_stream_tell( ), and mi_streamwrite_int8( ).
For more information on the use of mi_streamread_int8( ) in a streamread( ) support function, see the IBM Informix: DataBlade API Programmer's Guide.