oss_src/sframe/sarray_v2_type_encoding.cpp
static void decode_vector(iarchive& iarc, 
                          std::vector<flexible_type>& ret,
                          size_t num_undefined, 
                          bool new_format) {
  unsigned int last_id = 0;
  decode_vector_stream(ret.size() - num_undefined, iarc, 
                       [&](flexible_type val) {
                         while(last_id < ret.size() && 
                               ret[last_id].get_type() == flex_type_enum::UNDEFINED) {
                           ++last_id;
                         }
                         ret[last_id] = val;
                         DASSERT_LT(last_id, ret.size());
                         ++last_id;
                       }, new_format);
}
/**
 * Decodes a collection of vectors in data, skipping all UNDEFINED values.
 * Wrapper around decode_number_stream
 */
Decodes a collection of vectors in data, skipping all UNDEFINED values.
Decodes a collection of vectors in data skipping all UNDEFINED values .
static void decode_vector(iarchive& iarc, 
                          std::vector<flexible_type>& ret,
                          size_t num_undefined, 
                          bool new_format) {
  unsigned int last_id = 0;
  decode_vector_stream(ret.size() - num_undefined, iarc, 
                       [&](flexible_type val) {
                         while(last_id < ret.size() && 
                               ret[last_id].get_type() == flex_type_enum::UNDEFINED) {
                           ++last_id;
                         }
                         ret[last_id] = val;
                         DASSERT_LT(last_id, ret.size());
                         ++last_id;
                       }, new_format);
}
static void decode_vector ( iarchive & iarc , std :: vector < flexible_type > & ret , size_t num_undefined , bool new_format ) { unsigned int last_id = 0 ; decode_vector_stream ( ret . size ( ) - num_undefined , iarc , [ & ] ( flexible_type val ) { while ( last_id < ret . size ( ) && ret [ last_id ] . get_type ( ) == flex_type_enum :: UNDEFINED ) { ++ last_id ; } ret [ last_id ] = val ; DASSERT_LT ( last_id , ret . size ( ) ) ; ++ last_id ; } , new_format ) ; }
Decodes a collection of vectors in data, skipping all UNDEFINED values.
Decodes a collection of vectors in data skipping all UNDEFINED values .