storage_bytes.bend checks
raw source on the hub · import stelliferous@0.0.3.0/storage_bytes.bend as Storage_bytes
Bytes read from a file, as a list of words 0..255: positions, little-endian numbers, prefixes and text.
1 import
import Base
Types
type Decoding source · line 50 · raw
Data
Decoding@characters:List<&2, Char> -> @code:U32 -> @remaining:U32 -> Decoding
Definitions
def at source · line 5 · raw
@bytes:List<&2, U32> -> @index:Nat -> U32
def u16_at source · line 12 · raw
@+bytes:List<&2, U32> -> @+index:Nat -> U32
A number stored least significant byte first; a position past the end reads 0.
def u32_at source · line 15 · raw
@+bytes:List<&2, U32> -> @+index:Nat -> U32
def starts source · line 18 · raw
@pattern:List<&2, U32> -> @bytes:List<&2, U32> -> Bool
def ends source · line 24 · raw
@+bytes:List<&2, U32> -> @+pattern:List<&2, U32> -> Bool
def same source · line 27 · raw
@left:List<&2, U32> -> @right:List<&2, U32> -> Bool
def last_start source · line 35 · raw
@bytes:List<&2, U32> -> @+pattern:List<&2, U32> -> @+index:U32 -> @+best:Maybe<&2, U32> -> Maybe<&2, U32>
The position of the last occurrence of the pattern, if any.
def codes source · line 42 · raw
@text:String -> List<&2, U32>
ASCII text as bytes.
def opened source · line 53 · raw
@four:Bool -> @three:Bool -> @two:Bool -> @+byte:U32 -> @characters:List<&2, Char> -> Decoding
def lead source · line 60 · raw
@+byte:U32 -> @characters:List<&2, Char> -> Decoding
def continued source · line 63 · raw
@last:Bool -> @+byte:U32 -> @characters:List<&2, Char> -> @+code:U32 -> @+remaining:U32 -> Decoding
def stepped source · line 68 · raw
@fresh:Bool -> @+byte:U32 -> @characters:List<&2, Char> -> @+code:U32 -> @+remaining:U32 -> Decoding
def absorbed source · line 73 · raw
@+byte:U32 -> @decoding:Decoding -> Decoding
def finished source · line 77 · raw
@decoding:Decoding -> String
def decoded source · line 81 · raw
@bytes:List<&2, U32> -> @decoding:Decoding -> String
def text source · line 86 · raw
@bytes:List<&2, U32> -> String