Enum ProcessStatus
- Namespace
- DatabentoDotNet.Dbn
- Assembly
- DatabentoDotNet.Dbn.dll
What one step of Process(out int, out RecordRef) produced.
public enum ProcessStatus
Fields
Metadata = 1The stream's metadata block was decoded; it is available from Metadata. Happens at most once per stream.
NeedMoreData = 0Nothing could be decoded yet. Write more bytes into Space(), call Fill(int), and step again.
Record = 2One record was decoded and handed back through the step's
outparameter.
Remarks
The port of upstream's ProcessResult<R> (fsm.rs:78-91), which is a
data-carrying Rust enum with four variants: ReadMore(usize), Metadata(Metadata),
Record(R) and Err(Error). C# has no such enum and emulating one with a class
hierarchy would allocate per record, so the payloads move out to out parameters and the
enum stays a plain status.
There is no Err member. Malformed data is exceptional and throws a
DbnDecodeException; a stream simply ending is not, and surfaces as
NeedMoreData followed by the caller observing end-of-stream.