Source/Packages

Std.Word

packages/foundation/standard/src/Std/Word.alpha

1,783 lines192 declarations64.2 KiBSHA-256 27bf8c3f30ee

def · lines 1079–1092

stdU16ReadBE

Full file
1079def stdU16ReadBE =
1080  (lambda unrestricted input : Bytes .
1081    (nat-eliminate
1082      (lambda unrestricted current : Nat . (family StdDecoded (family StdU16)))
1083      (constructor StdDecoded StdDecodedTruncated (family StdU16))
1084      (lambda unrestricted predecessor : Nat .
1085        (lambda unrestricted induction : (family StdDecoded (family StdU16)) .
1086          (constructor
1087            StdDecoded
1088            StdDecodedValue
1089            (family StdU16)
1090            (stdU16FromBytes (bytes-head (bytes-tail input)) (bytes-head input))
1091            (bytes-tail (bytes-tail input)))))
1092      (naturalLessOrEqual (succ (succ zero)) (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.