Turi Create
4.0
|
#include <core/storage/sframe_data/sarray_v2_encoded_block.hpp>
Public Member Functions | |
size_t | decode_to (flexible_type *decode_target, size_t num_elem) |
The range returned by encoded_block::get_range(). It provides 2 basic methods. decode(target, size) and skip(n)
The encoded_block_range provides a one pass reader to the data.
The encoded_block_range holds its own pointers to the data and hence is not invalidated by destruction or reassignment of the originating encoded_block object.
The range is not concurrent.
Definition at line 140 of file sarray_v2_encoded_block.hpp.
size_t turi::v2_block_impl::encoded_block_range::decode_to | ( | flexible_type * | decode_target, |
size_t | num_elem | ||
) |
Decodes the next num_elem elements into the decode_target. Returns the number of elements read, i.e. while(num_elem) { (*decode_target) = next_value; ++decode_target; –num_elem; }