TupleWriter

Namespace: SnowBank.Data.Tuples.Binary · struct

Writes bytes to a contiguous region of arbitrary memory

Constructors

TupleWriter

TupleWriter()

TupleWriter(ref SliceWriter buffer, int depth = 0)

Constructs a TupleWriter that wraps an externally supplied SliceWriter

  • buffer — Buffer where the tuple will be written
  • depth — Initial depth of this writer

Fields

Depth

readonly int Depth

Current depth (0 for top-level, >= 1 for embedded tuples

Output

readonly SliceWriter Output

Buffer where the tuple will be written