mi_integer mi_streamread_smallint(strm_desc, smallint_ptr)
MI_STREAM *strm_desc;
mi_smallint *smallint_ptr;
The mi_streamread_smallint( ) function reads an mi_smallint value from the stream that strm_desc references. The function reads this value into the mi_smallint buffer that smallint_ptr 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.
The mi_streamread_smallint( ) function is useful in a streamread( ) support function of an opaque data type that contains an mi_smallint value.
See also the descriptions of mi_stream_getpos( ), mi_stream_read( ), mi_stream_tell( ), and mi_streamwrite_smallint( ).
For more information on the use of mi_streamread_smallint( ) in a streamread( ) support function, see the IBM Informix: DataBlade API Programmer's Guide.