[−][src]Function cql_nullable_f64::unpack_stream
pub fn unpack_stream<F>(stream: &mut Cursor<Vec<u8>>, n_values: usize, res: F) where
F: FnMut(usize, Option<f64>),
Unpacks n_values
of Optionres
with each value and it's index.
Examples
ⓘThis example is not tested
cql_db::read_to_stream::<NullableF64>( DATABASE_LOCATION, &mut stream, &base_point, N_VALUES_TO_READ as u64 ); stream.seek(SeekFrom::Start(0)); unpack_stream(&mut stream, N_VALUES_TO_READ, |idx, value| { result[idx] = value });