be> ( seq -- x )
Factor documentation > Factor handbook > Input and output > Working with binary data
Next:le> ( seq -- x )


Vocabulary
io.binary

Inputs and outputs
seqa sequence of bytes
xa 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 ;