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

Method DecodeValue

pgtype/bytea.go:243–254  ·  view source on GitHub ↗
(m *Map, oid uint32, format int16, src []byte)

Source from the content-addressed store, hash-verified

241}
242
243func (c ByteaCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {
244 if src == nil {
245 return nil, nil
246 }
247
248 var buf []byte
249 err := codecScan(c, m, oid, format, src, &buf)
250 if err != nil {
251 return nil, err
252 }
253 return buf, nil
254}

Callers 1

Calls 1

codecScanFunction · 0.85

Tested by

no test coverage detected