Handbook
Glossary
specialized-array? ( object -- ? )
Vocabulary
specialized-arrays
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
specialized-array
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
specialized-arrays.instances.alien.c-types.u32
specialized-arrays.instances.alien.c-types.u64
specialized-arrays.instances.alien.c-types.u8
specialized-arrays.instances.rlgl.rlDrawCall
specialized-arrays.instances.rlgl.rlVertexBuffer
;
IN:
specialized-arrays
:
specialized-array?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
u64-array
eq?
[
drop
t
]
[
dup
\
u8-array
eq?
[
drop
t
]
[
dup
\
u32-array
eq?
[
drop
t
]
[
dup
\
rlDrawCall-array
eq?
[
drop
t
]
[
dup
\
rlVertexBuffer-array
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;