Source/Packages

Std.Word

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

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

def · lines 1064–1077

stdU16ReadLE

Full file
1064def stdU16ReadLE =
1065  (lambda unrestricted input : Bytes .
1066    (nat-eliminate
1067      (lambda unrestricted current : Nat . (family StdDecoded (family StdU16)))
1068      (constructor StdDecoded StdDecodedTruncated (family StdU16))
1069      (lambda unrestricted predecessor : Nat .
1070        (lambda unrestricted induction : (family StdDecoded (family StdU16)) .
1071          (constructor
1072            StdDecoded
1073            StdDecodedValue
1074            (family StdU16)
1075            (stdU16FromBytes (bytes-head input) (bytes-head (bytes-tail input)))
1076            (bytes-tail (bytes-tail input)))))
1077      (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.