NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.
()
| 220 | |
| 221 | // NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter. |
| 222 | func NewArrayBuilderWithCounter() *ArrayBuilderWithCounter { |
| 223 | return &ArrayBuilderWithCounter{ |
| 224 | ab: NewArrayBuilder(0), |
| 225 | size: sliceHeaderSize, |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | // Add appends JSON to the sequence and updates the size counter. |
| 230 | func (b *ArrayBuilderWithCounter) Add(j JSON) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…