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

Method Encode

pgproto3/gss_response.go:19–23  ·  view source on GitHub ↗
(dst []byte)

Source from the content-addressed store, hash-verified

17}
18
19func (g *GSSResponse) Encode(dst []byte) ([]byte, error) {
20 dst, sp := beginMessage(dst, 'p')
21 dst = append(dst, g.Data...)
22 return finishMessage(dst, sp)
23}
24
25// MarshalJSON implements encoding/json.Marshaler.
26func (g *GSSResponse) MarshalJSON() ([]byte, error) {

Callers

nothing calls this directly

Calls 2

beginMessageFunction · 0.85
finishMessageFunction · 0.85

Tested by

no test coverage detected