MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / NewArrayBuilderWithCounter

Function NewArrayBuilderWithCounter

pkg/util/json/json.go:222–227  ·  view source on GitHub ↗

NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.

()

Source from the content-addressed store, hash-verified

220
221// NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.
222func 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.
230func (b *ArrayBuilderWithCounter) Add(j JSON) {

Callers

nothing calls this directly

Calls 1

NewArrayBuilderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…