def cur.fits
import bend-kit-journal@0.3.1.0/journal.bend as Journalimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
235def cur.fits(c: Cur, +at: U32, +n: U32) -> Cur & Bool:
236 Cur{Bytes.Bytes{+len, buf}, +pos} = c
237 (Cur{Bytes.Bytes{len, buf}, pos}, Bytes.fits((len - pos : U32), at, n))