ztsdb
Public Attributes | List of all members
zcore::ValState Struct Reference

#include <encode.hpp>

Public Attributes

val::Value val
 value under construction
 
uint64_t exp
 expected length
 
uint64_t n
 
unsigned stage
 

Detailed Description

State of a value being decoded. Allows to decode values split over multiple buffers.

Member Data Documentation

◆ n

uint64_t zcore::ValState::n

current length

◆ stage

unsigned zcore::ValState::stage

For Values composed of other Values, the stage indicates the reading state so we know where to continue when a new packet comes in; for example, in the case of reading an array, stage 0 indicates we are still reading the dimension/names list, stage 1 indicates we are reading the array values.


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