pub unsafe extern "C" fn ion_reader_get_value_length(
hreader: hREADER,
p_length: *mut SIZE,
) -> iERRExpand description
returns the length of the value the reader is currently
positioned on. This length is appropriate to use later
when calling ion_reader_seek to limit “over-reading” in
the underlying stream which could result in errors that
are not really of interest. NOTE: readers of text data
will always set *p_length to -1 because text Ion data is
not length-prefixed. When the reader may be reading text
Ion data, the correct way to calculate a value’s length
is by subtracting the current value’s offset (see
ion_reader_get_value_offset) from the next value’s
offset. This technique will work for both binary and text
Ion data.