File: Mathlib/Data/ByteArray.lean

full_name: Nat.Up
code: /-- A well-ordered relation for "upwards" induction on the natural numbers up to some bound `ub`. -/
def Up (ub a i : Nat) 
goal: Prop

full_name: Nat.Up.next
code: theorem Up.next {ub i} (h : i < ub) : Up ub (i+1) i 
goal: ub.Up (i + 1) i

full_name: Nat.Up.WF
code: theorem Up.WF (ub) : WellFounded (Up ub) 
goal: WellFounded ub.Up

full_name: Nat.upRel
code: /-- A well-ordered relation for "upwards" induction on the natural numbers up to some bound `ub`. -/
def upRel (ub : Nat) : WellFoundedRelation Nat 
goal: WellFoundedRelation Nat

full_name: ByteSliceT.off
code: /-- A terminal byte slice, a suffix of a byte array. -/
structure ByteSliceT := (arr : ByteArray) (off : Nat)
goal: Nat

full_name: ByteSliceT.arr
code: /-- A terminal byte slice, a suffix of a byte array. -/
structure ByteSliceT := (arr : ByteArray) (off : Nat)
goal: ByteArray

full_name: ByteSliceT
code: /-- A terminal byte slice, a suffix of a byte array. -/
structure ByteSliceT := (arr : ByteArray) (off : Nat)
goal: Type

full_name: ByteSliceT.size
code: /-- The number of elements in the byte slice. -/
@[inline] def size (self : ByteSliceT) : Nat 
goal: Nat

full_name: ByteSliceT.getOp
code: /-- Index into a byte slice. The `getOp` function allows the use of the `buf[i]` notation. -/
@[inline] def getOp (self : ByteSliceT) (idx : Nat) : UInt8 
goal: UInt8

full_name: ByteArray.toSliceT
code: /-- Convert a byte array into a terminal slice. -/
def ByteArray.toSliceT (arr : ByteArray) : ByteSliceT 
goal: ByteSliceT

full_name: ByteSlice.arr
code: /-- A byte slice, given by a backing byte array, and an offset and length. -/
structure ByteSlice := (arr : ByteArray) (off len : Nat)
goal: ByteArray

full_name: ByteSlice
code: /-- A byte slice, given by a backing byte array, and an offset and length. -/
structure ByteSlice := (arr : ByteArray) (off len : Nat)
goal: Type

full_name: ByteSlice.off
code: /-- A byte slice, given by a backing byte array, and an offset and length. -/
structure ByteSlice := (arr : ByteArray) (off len : Nat)
goal: Nat

full_name: ByteSlice.len
code: /-- A byte slice, given by a backing byte array, and an offset and length. -/
structure ByteSlice := (arr : ByteArray) (off len : Nat)
goal: Nat

full_name: ByteSlice.toArray
code: /-- Convert a byte slice into an array, by copying the data if necessary. -/
def toArray : ByteSlice → ByteArray
  
goal: ByteSlice → ByteArray

full_name: ByteSlice.getOp
code: /-- Index into a byte slice. The `getOp` function allows the use of the `buf[i]` notation. -/
@[inline] def getOp (self : ByteSlice) (idx : Nat) : UInt8 
goal: UInt8

full_name: ByteSlice.forIn.loop
code: /-- The inner loop of the `forIn` implementation for byte slices. -/
def forIn.loop {m : Type u → Type v} {β : Type u} [Monad m] (f : UInt8 → β → m (ForInStep β))
    (arr : ByteArray) (off _end : Nat) (i : Nat) (b : β) : m β 
goal: m β

full_name: ByteSlice.instForInUInt8
code: instance {m : Type u → Type v} : ForIn m ByteSlice UInt8 
goal: ForIn m ByteSlice UInt8

full_name: ByteSliceT.toSlice
code: /-- Convert a terminal byte slice into a regular byte slice. -/
def ByteSliceT.toSlice : ByteSliceT → ByteSlice
  
goal: ByteSliceT → ByteSlice

full_name: ByteArray.toSlice
code: /-- Convert a byte array into a byte slice. -/
def ByteArray.toSlice (arr : ByteArray) : ByteSlice 
goal: ByteSlice

full_name: String.toAsciiByteArray.loop
code: /-- Convert a string of assumed-ASCII characters into a byte array.
(If any characters are non-ASCII they will be reduced modulo 256.) -/
def String.toAsciiByteArray (s : String) : ByteArray 
goal: ByteArray

full_name: String.toAsciiByteArray
code: /-- Convert a string of assumed-ASCII characters into a byte array.
(If any characters are non-ASCII they will be reduced modulo 256.) -/
def String.toAsciiByteArray (s : String) : ByteArray 
goal: ByteArray

full_name: ByteSlice.toString
code: /-- Convert a byte slice into a string. This does not handle non-ASCII characters correctly:
every byte will become a unicode character with codepoint < 256. -/
def ByteSlice.toString (bs : ByteSlice) : String 
goal: String

full_name: instToStringByteSlice
code: instance : ToString ByteSlice 
goal: ToString ByteSlice