Handbook
Glossary
magic<< ( value object -- )
Vocabulary
accessors
Inputs
value
an
object
object
an
object
Outputs
None
Definition
IN:
accessors
GENERIC:
magic<<
( value object -- )
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
}
}
}
write-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
}
}
}
write-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
}
}
write-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
}
}
write-struct-slot
;
inline
USING:
accessors
slots.private
terminfo.private
;
M:
extinfo-header
magic<<
2
set-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
}
}
write-struct-slot
;
inline
USING:
accessors
images.bitmap
slots.private
;
M:
file-header
magic<<
2
set-slot
;
inline
USING:
accessors
git
slots.private
;
M:
git-index
magic<<
2
set-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
}
}
write-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
}
}
write-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
}
}
write-struct-slot
;
inline
USING:
accessors
images.gif
slots.private
;
M:
loading-gif
magic<<
3
set-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
}
}
write-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
}
}
write-struct-slot
;
inline
USING:
accessors
git
slots.private
;
M:
pack
magic<<
2
set-slot
;
inline
USING:
accessors
slots.private
tar
;
M:
tar-header
magic<<
11
set-slot
;
inline
USING:
accessors
slots.private
terminfo.private
;
M:
terminfo-header
magic<<
2
set-slot
;
inline