def Cursor.read
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
884def Cursor.read(~T: Data, ~read: Bytes -> @+i:U32 -> Bytes & Maybe<&2, T>, c: Cursor, +n: U32) -> Cursor & Maybe<&2, T>:
885 Cursor{Bytes{+len, buf}, +pos, +start, +end} = c
886 Cursor.read.if(~T, ~read, Cursor.fits(len, pos, start, end, n), Cursor{Bytes{len, buf}, pos, start, end}, n)