Handbook
Glossary
load-image ( image-file -- image )
Loader for Factor images
Vocabulary
tools
.
image
.
analyzer
Inputs
image-file
a
string
Outputs
image
an
image
Word description
Loads and decodes Factor image.
Definition
USING:
accessors
classes.struct
io
io.encodings.binary
io.files
kernel
sequences
tools.image.analyzer.vm
;
IN:
tools.image.analyzer
:
load-image
( image-file -- image )
binary
[
image-header
read-struct
check-uncompressed
dup
[
[
data-relocation-base>>
]
[
data-heap-size
read
]
bi
data-heap>objects
]
[
code-size>>
read
code-heap>code-blocks
]
bi
]
with-file-reader
3dup
adjust-addresses
append
image
boa
;