(zv scode.Bytes)
| 287 | } |
| 288 | |
| 289 | func DecodeIP(zv scode.Bytes) netip.Addr { |
| 290 | var a netip.Addr |
| 291 | if err := a.UnmarshalBinary(zv); err != nil { |
| 292 | panic(fmt.Errorf("failure trying to decode IP address: %w", err)) |
| 293 | } |
| 294 | return a |
| 295 | } |
| 296 | |
| 297 | func (t *TypeOfIP) ID() int { |
| 298 | return IDIP |
no outgoing calls
no test coverage detected