<ref> ( value c-type -- c-ptr )
Factor handbook » C library interface » Passing data between Factor and C » C value boxes

Next:deref ( c-ptr c-type -- value )


Vocabulary
alien.data

Inputs
valuean object
c-typea C type


Outputs
c-ptra c-ptr


Word description
Creates a new byte array to store a Factor object as a C value.

Examples
USING: alien.c-types alien.data prettyprint sequences ; 123 int <ref> length .
4


Definition