MCPcopy
hub / github.com/jackc/pgx / Finish

Method Finish

pgtype/composite.go:514–521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512}
513
514func (b *CompositeBinaryBuilder) Finish() ([]byte, error) {
515 if b.err != nil {
516 return nil, b.err
517 }
518
519 binary.BigEndian.PutUint32(b.buf[b.startIdx:], b.fieldCount)
520 return b.buf, nil
521}
522
523type CompositeTextBuilder struct {
524 m *Map

Callers 1

EncodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected