pub type openmpt_stream_read_func = Option<unsafe extern "C" fn(stream: *mut c_void, dst: *mut c_void, bytes: usize) -> usize>;
Expand description

\brief Read bytes from stream

Read bytes data from stream to dst. \param stream Stream to read data from \param dst Target where to copy data. \param bytes Number of bytes to read. \return Number of bytes actually read and written to dst. \retval 0 End of stream or error. \remarks Short reads are allowed as long as they return at least 1 byte if EOF is not reached.