Turi Create
4.0
|
#include <core/storage/sframe_data/sarray_v2_type_encoding.hpp>
Public Member Functions | |
bool | read (size_t num_elements, iarchive &iarc, const std::pair< flexible_type *, size_t > &decodebuffer, size_t skip, bool new_format) |
Handle a stream decoding of ndvector values.
read acts as a coroutine where it is called multiple times to decode up to num_elements values from the archive. For each call either decodebuffer is set, or skip is set. At least 1 value must be read/skipped or there will be problems. num_elements and iarc should be the same on every call.
This is the 2nd generation vector decoder. its use is flagged by turning on the block flag BLOCK_ENCODING_EXTENSION.
Definition at line 305 of file sarray_v2_type_encoding.hpp.
bool turi::v2_block_impl::decode_ndvector_stream::read | ( | size_t | num_elements, |
iarchive & | iarc, | ||
const std::pair< flexible_type *, size_t > & | decodebuffer, | ||
size_t | skip, | ||
bool | new_format | ||
) |
Decodes num_elements of nd_vectors, calling the callback for each string.