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

Method DecodeValue

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

Source from the content-addressed store, hash-verified

149}
150
151func (c MacaddrCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {
152 if src == nil {
153 return nil, nil
154 }
155
156 var addr net.HardwareAddr
157 err := codecScan(c, m, oid, format, src, &addr)
158 if err != nil {
159 return nil, err
160 }
161 return addr, nil
162}

Callers

nothing calls this directly

Calls 1

codecScanFunction · 0.85

Tested by

no test coverage detected