Handbook
Glossary
dbf-file-header
Vocabulary
dbf
Definition
USING:
alien.c-types
classes.struct
;
IN:
dbf
STRUCT:
dbf-file-header
{
file-type
uint8_t
initial:
0
}
{
year
uint8_t
initial:
0
}
{
month
uint8_t
initial:
0
}
{
day
uint8_t
initial:
0
}
{
#records
uint32_t
initial:
0
}
{
header-length
uint16_t
initial:
0
}
{
record-length
uint16_t
initial:
0
}
{
reserved1
uint16_t
initial:
0
}
{
incomplete-transaction
uint8_t
initial:
0
}
{
encryption-flag
uint8_t
initial:
0
}
{
free-record-thread
uint32_t
initial:
0
}
{
reserved2
uint32_t
initial:
0
}
{
reserved3
uint32_t
initial:
0
}
{
mdx-flag
uint8_t
initial:
0
}
{
language-driver
uint8_t
initial:
0
}
{
reserved4
uint16_t
initial:
0
}
;
Methods
USING:
classes.struct
classes.struct.private
dbf
kernel
;
M:
dbf-file-header
clone
clone-underlying
\
dbf-file-header
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
dbf
;
M:
dbf-file-header
struct-slot-values
{
[
file-type>>
]
[
year>>
]
[
month>>
]
[
day>>
]
[
#records>>
]
[
header-length>>
]
[
record-length>>
]
[
reserved1>>
]
[
incomplete-transaction>>
]
[
encryption-flag>>
]
[
free-record-thread>>
]
[
reserved2>>
]
[
reserved3>>
]
[
mdx-flag>>
]
[
language-driver>>
]
[
reserved4>>
]
}
cleave>array
;
inline