def Cursor.remaining

bend-kit-bytes@0.3.3.0 · bytes.bend:826

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

826def Cursor.remaining(c: Cursor) -> Cursor & U32:
827  Cursor{b, +pos, start, +end} = c
828  (Cursor{b, pos, start, end}, (end - U32.min(pos, end) : U32))

Uses (6)

Used by (3)