def pr.value

bend-kit-tar@0.3.0.0 · tar.bend:229

import bend-kit-tar@0.3.0.0/tar.bend as Tar
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

229def pr.value(pax: Pax, r: Bytes.Cursor & Maybe<&2, PKey>) -> Bytes.Cursor & Pst:
230  (c, key) = r
231  match key:
232    case None{}:
233      pr.skip(c, pax)
234    case Some{k}:
235      match k:
236        case PPath{}:
237          pr.path(c, pax)
238        case PSize{}:
239          pr.size.done(pax, dec(c))
240        case POther{}:
241          pr.skip(c, pax)

Uses (11)

Used by (1)