Handbook
Glossary
zim-header
Vocabulary
zim
Definition
USING:
alien.c-types
classes.struct
;
IN:
zim
PACKED-STRUCT:
zim-header
{
magic-number
uint32_t
initial:
0
}
{
major-version
uint16_t
initial:
0
}
{
minor-version
uint16_t
initial:
0
}
{
uuid uint8_t[16]
}
{
entry-count
uint32_t
initial:
0
}
{
cluster-count
uint32_t
initial:
0
}
{
url-ptr-pos
uint64_t
initial:
0
}
{
title-ptr-pos
uint64_t
initial:
0
}
{
cluster-ptr-pos
uint64_t
initial:
0
}
{
mime-list-ptr-pos
uint64_t
initial:
0
}
{
main-page
uint32_t
initial:
0
}
{
layout-page
uint32_t
initial:
0
}
{
checksum-pos
uint64_t
initial:
0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
zim
;
M:
zim-header
clone
clone-underlying
\
zim-header
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
zim
;
M:
zim-header
struct-slot-values
{
[
magic-number>>
]
[
major-version>>
]
[
minor-version>>
]
[
uuid>>
]
[
entry-count>>
]
[
cluster-count>>
]
[
url-ptr-pos>>
]
[
title-ptr-pos>>
]
[
cluster-ptr-pos>>
]
[
mime-list-ptr-pos>>
]
[
main-page>>
]
[
layout-page>>
]
[
checksum-pos>>
]
}
cleave>array
;
inline