mi_integer mi_stream_write(strm_desc, buf, nbytes) MI_STREAM *strm_desc; void *buf; mi_integer nbytes;
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
No | Yes |
The mi_stream_write( ) function writes up to nbytes bytes to the open stream that strm_desc references. This functions copies the data to write to the stream from the buf user-defined buffer. The write operation begins at the current stream seek position. You can use mi_stream_tell( ) or mi_stream_getpos( ) to obtain this seek position.
The actual number of bytes written might be less than the nbytes value.
See also the descriptions of mi_stream_open_fio( ), mi_stream_open_mi_lvarchar( ), mi_stream_open_str( ), mi_stream_read( ), mi_stream_seek( ), and mi_stream_tell( ).