Results for “Std.Bytes.Cursor.Cursor”
14 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Bytes.Cursor.Cursor
A byte position within the original immutable input.
- Std.Bytes.Cursor.peek
&Std.Bytes.Cursor.Cursor -> Result[Option[UInt8], Std.Bytes.Cursor.CursorError]Observe the next byte without consuming it; EOF is
None. - Std.Bytes.Cursor.remaining
&Std.Bytes.Cursor.Cursor -> Result[Int, Std.Bytes.Cursor.CursorError]Validate the cursor before subtracting its position from the input length.
- Std.Bytes.Cursor.seek
&Std.Bytes.Cursor.Cursor -> Int -> Result[Std.Bytes.Cursor.Cursor, Std.Bytes.Cursor.CursorError]Move to an absolute byte position, including the end of input.
- Std.Bytes.Cursor.skip
&Std.Bytes.Cursor.Cursor -> Int -> Result[Std.Bytes.Cursor.Cursor, Std.Bytes.Cursor.CursorError]Skip bytes using the same bounds contract as a read.
- Std.Bytes.Cursor.start
&Bytes -> Std.Bytes.Cursor.CursorBegin reading without copying the input.
- Std.Bytes.Cursor.take
&Std.Bytes.Cursor.Cursor -> Int -> Result[(Bytes, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]Read a shared view. A failed read leaves the original cursor usable.
- Std.Bytes.Cursor.u16Be
&Std.Bytes.Cursor.Cursor -> Result[(UInt16, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]Read an unsigned integer in the byte order named by the function.
- Std.Bytes.Cursor.u16Le
&Std.Bytes.Cursor.Cursor -> Result[(UInt16, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]The next two bytes as an unsigned number, least significant first.
- Std.Bytes.Cursor.u32Be
&Std.Bytes.Cursor.Cursor -> Result[(UInt32, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]The next four bytes as an unsigned number, most significant first.
- Std.Bytes.Cursor.u32Le
&Std.Bytes.Cursor.Cursor -> Result[(UInt32, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]The next four bytes as an unsigned number, least significant first.
- Std.Bytes.Cursor.u64Be
&Std.Bytes.Cursor.Cursor -> Result[(UInt64, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]The next eight bytes as an unsigned number, most significant first.
- Std.Bytes.Cursor.u64Le
&Std.Bytes.Cursor.Cursor -> Result[(UInt64, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]The next eight bytes as an unsigned number, least significant first.
- Std.Bytes.Cursor.u8
&Std.Bytes.Cursor.Cursor -> Result[(UInt8, Std.Bytes.Cursor.Cursor), Std.Bytes.Cursor.CursorError]Read one octet without converting it through text.
