NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.
()
| 235 | |
| 236 | // NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter. |
| 237 | func NewArrayBuilderWithCounter() *ArrayBuilderWithCounter { |
| 238 | return &ArrayBuilderWithCounter{ |
| 239 | ab: NewArrayBuilder(0), |
| 240 | size: sliceHeaderSize, |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | // Add appends JSON to the sequence and updates the size counter. |
| 245 | func (b *ArrayBuilderWithCounter) Add(j JSON) { |
nothing calls this directly
no test coverage detected