Handbook
Glossary
struct-bit-slot-spec
Vocabulary
classes
.
struct
Definition
IN:
classes.struct
TUPLE:
struct-bit-slot-spec
<
struct-slot-spec
bits signed?
;
Methods
USING:
accessors
alien
classes.struct
classes.struct.bit-accessors
classes.struct.private
kernel
;
M:
struct-bit-slot-spec
(reader-quot)
[
[
offset>>
]
[
bits>>
]
bi
bit-reader
]
[
[
signed?>>
]
[
bits>>
]
bi
sign-extender
]
bi
compose
[
>c-ptr
]
prepose
;
USING:
accessors
alien
classes.struct
classes.struct.bit-accessors
classes.struct.private
kernel
;
M:
struct-bit-slot-spec
(writer-quot)
[
offset>>
]
[
bits>>
]
bi
bit-writer
[
>c-ptr
]
prepose
;
USING:
accessors
classes.struct
classes.struct.private
kernel
math
;
M:
struct-bit-slot-spec
compute-slot-offset
[
offset<<
]
[
bits>>
+
]
2bi
;