Source/Packages

Data.Bytes

packages/foundation/standard/src/Data/Bytes.alpha

1,218 lines172 declarations47.4 KiBSHA-256 beded7f8a171

def · lines 1127–1148

dataBytesRenderHexBuilder

Full file
1127def dataBytesRenderHexBuilder =
1128  (lambda unrestricted input : Bytes .
1129    bytesFoldFromStart
1130      BytesBuilder
1131      (lambda unrestricted offset : Nat .
1132        unrestricted head : Byte .
1133        unrestricted accumulated : BytesBuilder .
1134        bytes-builder-append
1135          accumulated
1136          (bytes-builder-chunk
1137            (nest bytes-cons
1138              (pipe head
1139                byte-to-nat
1140                (naturalDivideUnchecked dataBytesNaturalSixteen)
1141                dataBytesHexDigit)
1142              (pipe head
1143                byte-to-nat
1144                (naturalModuloUnchecked dataBytesNaturalSixteen)
1145                dataBytesHexDigit)
1146              b"")))
1147      (bytes-builder-empty)
1148      input)

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.