Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
memory>struct ( ptr class -- struct )
Factor documentation
>
Factor handbook
>
C library interface
>
Struct classes
>
Creating instances of structs
Prev:
malloc-struct ( class -- struct )
Next:
(struct) ( class -- struct )
Vocabulary
classes.struct
Inputs and outputs
ptr
a
c-ptr
class
a
class
struct
a
struct
Word description
Constructs a new
struct
of the specified
class
at the memory location referenced by
ptr
. The referenced memory is unchanged.
See also
<struct>
,
<struct-boa>
,
malloc-struct
Definition
USING:
combinators
kernel
;
IN:
classes.struct
:
memory>struct
( ptr class -- struct )
[
boa
]
curry
( ptr -- struct )
call-effect
;
inline