Handbook
Glossary
signed-le> ( seq -- x )
Vocabulary
endian
Inputs
seq
an
object
Outputs
x
an
object
Definition
USING:
alien.c-types
alien.data
combinators
endian.private
kernel
sequences
;
IN:
endian
:
signed-le>
( seq -- x )
little-endian
[
dup
length
{
{
1
[
int8_t
deref
]
}
{
2
[
int16_t
deref
]
}
{
4
[
int32_t
deref
]
}
{
8
[
int64_t
deref
]
}
[
drop
slow-signed-le>
]
}
case
]
[
slow-signed-le>
]
if-endian
;