Handbook
Glossary
magic>> ( object -- value )
Vocabulary
accessors
Inputs
object
an
object
Outputs
value
an
object
Definition
IN:
accessors
GENERIC:
magic>>
( object -- value )
Methods
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
kernel
ldcache.private
;
M:
HeaderNew
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
object
}
{
type
{
char
20
}
}
}
read-struct-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
kernel
ldcache.private
;
M:
HeaderOld
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
object
}
{
type
{
char
11
}
}
}
read-struct-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
math
tools.image
;
M:
embedded-image-footer.32
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 8
}
{
class
fixnum
}
{
initial 0
}
{
type
u32
}
}
read-struct-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
math
tools.image
;
M:
embedded-image-footer.64
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
integer
}
{
initial 0
}
{
type
u64
}
}
read-struct-slot
;
inline
USING:
accessors
slots.private
terminfo.private
;
M:
extinfo-header
magic>>
2
slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
macho
math
;
M:
fat_header
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
fixnum
}
{
initial 0
}
{
type
uint
}
}
read-struct-slot
;
inline
USING:
accessors
images.bitmap
slots.private
;
M:
file-header
magic>>
2
slot
;
inline
USING:
accessors
git
slots.private
;
M:
git-index
magic>>
2
slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
math
tools.image
;
M:
image-header.32
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
fixnum
}
{
initial 0
}
{
type
u32
}
}
read-struct-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
math
tools.image
;
M:
image-header.64
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
integer
}
{
initial 0
}
{
type
u64
}
}
read-struct-slot
;
inline
USING:
accessors
classes.struct
classes.struct.private
math
tools.image.analyzer.vm
vm
;
M:
image-header
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
integer
}
{
initial 0
}
{
type
cell_t
}
}
read-struct-slot
;
inline
USING:
accessors
images.gif
slots.private
;
M:
loading-gif
magic>>
3
slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
macho
math
;
M:
mach_header
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
fixnum
}
{
initial 0
}
{
type
uint
}
}
read-struct-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
macho
math
;
M:
mach_header_64
magic>>
T{
struct-slot-spec
{
name
"magic"
}
{
offset 0
}
{
class
fixnum
}
{
initial 0
}
{
type
uint
}
}
read-struct-slot
;
inline
USING:
accessors
git
slots.private
;
M:
pack
magic>>
2
slot
;
inline
USING:
accessors
slots.private
tar
;
M:
tar-header
magic>>
11
slot
;
inline
USING:
accessors
slots.private
terminfo.private
;
M:
terminfo-header
magic>>
2
slot
;
inline
USING:
accessors
images.bitmap
slots.private
;
M:
unsupported-bitmap-file
magic>>
2
slot
;
inline
USING:
accessors
images.gif
slots.private
;
M:
unsupported-gif-format
magic>>
2
slot
;
inline