Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
be> ( seq -- x )
Factor documentation
>
Factor handbook
>
Input and output
>
Working with binary data
Next:
le> ( seq -- x )
Vocabulary
io.binary
Inputs and outputs
seq
a sequence of bytes
x
a non-negative integer
Word description
Converts a sequence of bytes in big endian order into an unsigned integer.
Definition
USING:
kernel
math
sequences
;
IN:
io.binary
:
be>
( seq -- x )
0
[
[
8
shift
]
dip
+
]
reduce
;