Turi Create  4.0
turi::v2_block_impl::decode_string_stream Struct Reference

#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)
 

Detailed Description

Handle a stream decoding of string values (new format).

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.

Definition at line 236 of file sarray_v2_type_encoding.hpp.

Member Function Documentation

◆ read()

bool turi::v2_block_impl::decode_string_stream::read ( size_t  num_elements,
iarchive iarc,
const std::pair< flexible_type *, size_t > &  decodebuffer,
size_t  skip 
)

Decodes num_elements of strings , calling the callback for each string.


The documentation for this struct was generated from the following file: