Function ion_c_sys::ion_reader_open_buffer [−][src]
pub unsafe extern "C" fn ion_reader_open_buffer(
p_hreader: *mut hREADER,
buffer: *mut BYTE,
buf_length: SIZE,
p_options: *mut ION_READER_OPTIONS
) -> iERR
Expand description
Allocates a new reader consuming a given buffer of data.
@param p_hreader will receive a pointer to the new reader. It must be freed via ion_reader_close(). @param buffer the Ion data to read, either UTF-8 text or binary. Must be a valid handle. The caller retains ownership of the buffer and must ensure that its data is unmodified until the reader is closed. @param buf_length the length of the buffer @param p_options may be null, in that case, default value will be used.