def str

ezx@1.11.0.0 · src/sha/nar.bend:51

import ezx@1.11.0.0/src/sha/nar.bend as Nar
import Base

51# one NAR string: its length, its bytes, then zeros up to a multiple of eight
52def str(+text: String) -> String:
53  +n = String.length(text)
54  le64(n) ++ text ++ zeros(pad.of(n))

Uses (6)

Used by (6)