def pr.len.valid
import bend-kit-tar@0.3.0.0/tar.bend as Tarimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
269def pr.len.valid(ok: Bool, c: Bytes.Cursor, +body: U32, pax: Pax) -> Bytes.Cursor & Pst:
270 match ok:
271 case False{}:
272 (c, PBad{})
273 case True{}:
274 pr.body(pax, Bytes.Cursor.region(c, body))