(ps *parameterStatus, s []byte, typ oid.Oid, f format)
| 52 | } |
| 53 | |
| 54 | func decode(ps *parameterStatus, s []byte, typ oid.Oid, f format) (any, error) { |
| 55 | switch f { |
| 56 | case formatBinary: |
| 57 | return binaryDecode(s, typ) |
| 58 | case formatText: |
| 59 | return textDecode(ps, s, typ) |
| 60 | default: |
| 61 | panic("unreachable") |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func binaryDecode(s []byte, typ oid.Oid) (any, error) { |
| 66 | switch typ { |
searching dependent graphs…