attacking_anti_tamper/taint_cpp/include/taint/serialization.h
bool next() {
        // check if we need to load more data
        if (cur_pos + 1 >= buf.size()) {
            // if we successfully load more data it will be set to something valid
            current = nullptr;
            // we already loaded all of the data
            if (hit_eof) {
                return false;
            }
            // actually load the next chunck
            read_next();
            // sanity check that we actually read something
            if (buf.size() == 0) {
                return false;
            }
        }
        current = buf[++cur_pos];
        return true;
    }
// advances the current position
// return false when there is no next element
advances the current position
return false when there is no next element
advances the current position return false when there is no next element
bool next() {
        if (cur_pos + 1 >= buf.size()) {
            current = nullptr;
            if (hit_eof) {
                return false;
            }
            read_next();
            if (buf.size() == 0) {
                return false;
            }
        }
        current = buf[++cur_pos];
        return true;
    }
bool next ( ) { if ( cur_pos + 1 >= buf . size ( ) ) { current = nullptr ; if ( hit_eof ) { return false ; } read_next ( ) ; if ( buf . size ( ) == 0 ) { return false ; } } current = buf [ ++ cur_pos ] ; return true ; }
advances the current position
return false when there is no next element
advances the current position return false when there is no next element
// check if we need to load more data // if we successfully load more data it will be set to something valid // we already loaded all of the data // actually load the next chunck // sanity check that we actually read something