Source/Packages

Data.Bytes

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

1,218 lines172 declarations47.4 KiBSHA-256 beded7f8a171

def · lines 1150–1186

dataBytesRenderHexWithin

Full file
1150def dataBytesRenderHexWithin =
1151  (lambda unrestricted allocationLimit : Nat . unrestricted input : Bytes .
1152    app
1153      (lambda unrestricted inputLength : Nat .
1154        eliminate
1155          DataBytesCheckedNaturalResult
1156          (lambda unrestricted current : (family DataBytesCheckedNaturalResult) .
1157            family DataBytesResult)
1158          (dataBytesCheckedAddWithin
1159            allocationLimit
1160            (constructor DataBytesErrorCode DataBytesAllocationLimitExceeded)
1161            inputLength
1162            inputLength)
1163          (branch DataBytesCheckedNaturalSucceeded outputLength .
1164            app
1165              (lambda unrestricted output : Bytes .
1166                constructor
1167                  DataBytesResult
1168                  DataBytesSucceeded
1169                  output
1170                  (dataBytesTelemetry
1171                    inputLength
1172                    outputLength
1173                    outputLength
1174                    inputLength
1175                    0
1176                    outputLength
1177                    inputLength
1178                    allocationLimit))
1179              (bytes-builder-build (dataBytesRenderHexBuilder input)))
1180          (branch DataBytesCheckedNaturalFailed code .
1181            constructor
1182              DataBytesResult
1183              DataBytesFailed
1184              code
1185              (dataBytesTelemetry inputLength inputLength 0 0 0 0 0 allocationLimit)))
1186      (bytes-length 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.