Handbook
Glossary
size ( obj -- n )
Factor handbook
»
Developer tools
»
Object memory tools
Prev:
instances ( quot -- seq )
Next:
gc ( -- )
Vocabulary
memory
Inputs
obj
an
object
Outputs
n
a size in bytes
Word description
Outputs the size of the object in memory, in bytes. Tagged immediate objects such as fixnums and
f
will yield a size of 0.
Definition
IN:
memory
PRIMITIVE:
size
( obj -- n )
flushable