Documentation

PrimParser.BytesWindow

A window of a ByteArray. #

structure Parser.BytesWindow (w : Nat) :

A w bytes window of buf[start .. start + w - 1]

Instances For
    @[instance_reducible]
    Equations
    @[simp]
    theorem Parser.BytesWindow.getElem_def {w : Nat} (b : BytesWindow w) (i : Nat) (h : i < w) :
    b[i] = b.buf[b.start + i]
    @[reducible, inline]
    abbrev Parser.BytesWindow.narrow {w : Nat} (b : BytesWindow w) (offset w' : Nat) (h : offset + w' ≤ w := by omega) :
    Equations
    Instances For
      Equations
      Instances For