def Cursor.write

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

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

917def Cursor.write(~T: Data, ~write: Bytes -> @+i:U32 -> @+v:T -> Bytes, c: Cursor, +n: U32, v: T) -> Cursor & Bool:
918  Cursor{Bytes{+len, buf}, +pos, +start, +end} = c
919  Cursor.write.if(~T, ~write, Cursor.fits(len, pos, start, end, n), Cursor{Bytes{len, buf}, pos, start, end}, n, v)

Uses (7)

Used by (7)