Handbook
Glossary
image-header? ( object -- ? )
Vocabulary
tools
.
image
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
image-header
class.
Definition
USING:
classes.tuple.private
kernel
kernel.private
math.private
slots.private
;
IN:
tools.image
:
image-header?
( object -- ? )
dup
tag
1
eq?
[
drop
t
]
[
dup
tuple?
[
layout-of
dup
1
slot
9
fixnum>=
[
9
slot
dup
\
image-header.64
eq?
[
drop
t
]
[
\
image-header.32
eq?
]
if
]
[
drop
f
]
if
]
[
drop
f
]
if
]
if
;