Handbook
Glossary
deref ( c-ptr c-type -- value )
Factor handbook
»
C library interface
»
Passing data between Factor and C
»
C value boxes
Prev:
<ref> ( value c-type -- c-ptr )
Vocabulary
alien
.
data
Inputs
c-ptr
a
c-ptr
c-type
a C type
Outputs
value
an
object
Word description
Loads a C value from a byte array.
Examples
USING: alien.c-types alien.data prettyprint sequences ; 321 int <ref> int deref .
321
Definition
USING:
alien.c-types
kernel
;
IN:
alien.data
:
deref
( c-ptr c-type -- value )
[
0
]
dip
alien-value
;
inline