def v6.show.mapped

bend-kit-netip@0.1.0.0 · netip.bend:329

import bend-kit-netip@0.1.0.0/netip.bend as Netip
import Base

329def v6.show.mapped(mapped: Bool, +a: U32, +b: U32, +c: U32, +d: U32) -> String:
330  match mapped:
331    case True{}:
332      "::ffff:" ++ v4.show(d)
333    case False{}:
334      v6.show.run(a, b, c, d, zeros.best(groups(a, b, c, d), 0, 0, 0, 0, 0))

Uses (8)

Used by (1)