Equations
- StrataDDM.ByteArray.ofNatArray a = { data := Array.map UInt8.ofNat a }
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Equations
- StrataDDM.ByteArray.asHex a = ByteArray.foldl (fun (s : String) (b : UInt8) => s ++ StrataDDM.ByteArray.byteToHex✝ b) "" a
Instances For
Equations
- StrataDDM.ByteArray.reprPrec a p = Repr.addAppParen (Std.Format.text "ByteArray.mk " ++ reprArg a.data) p
Instances For
@[implicit_reducible]
Equations
Equations
- StrataDDM.ByteArray.escapeBytes b = ByteArray.foldl (fun (s : String) (b : UInt8) => s ++ StrataDDM.ByteArray.escapeBytes.aux✝ b) "b\"" b ++ "\""
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- StrataDDM.ByteArray.escapeChars = Std.HashMap.ofList (List.map (fun (x : UInt8 × Char) => match x with | (i, c) => (c, i)) StrataDDM.ByteArray.escapedBytes.toList)
Instances For
partial def
StrataDDM.ByteArray.unescapeBytesRawAux
(s : String)
(i0 : String.Pos.Raw)
(a : ByteArray)
: