def blk

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

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

612# b with zero bytes up to the next whole block. Bytes past len are already 0, so only len and room grow.
613def blk(b: Bytes.Bytes) -> Bytes.Bytes:
614  Bytes.Bytes{+len, buf} = b
615  +n = pad(len)
616  Bytes.Bytes{n, Bytes.grow(len, buf, n)}

Uses (3)

Used by (2)