DocBuilder constructor

DocBuilder({
  1. int schemaId = 0,
  2. int schemaVersion = 1,
  3. int capacity = 256,
})

Creates a builder. capacity is the initial buffer size, not a limit.

Implementation

DocBuilder({this.schemaId = 0, this.schemaVersion = 1, int capacity = 256})
  : _capacity = capacity < 64 ? 64 : capacity,
    _sink = DocSink(capacity: capacity < 64 ? 64 : capacity);