-struct format {
- GQuark name;
-
- uint64_t (*uint_read)(struct stream_pos *pos,
- const struct type_class_integer *int_class);
- int64_t (*int_read)(struct stream_pos *pos,
- const struct type_class_integer *int_class);
- void (*uint_write)(struct stream_pos *pos,
- const struct type_class_integer *int_class,
- uint64_t v);
- void (*int_write)(struct stream_pos *pos,
- const struct type_class_integer *int_class,
- int64_t v);
-
- uint64_t (*bitfield_unsigned_read)(struct stream_pos *pos,
- const struct type_class_bitfield *bitfield_class);
- int64_t (*bitfield_signed_read)(struct stream_pos *pos,
- const struct type_class_bitfield *bitfield_class);
- void (*bitfield_unsigned_write)(struct stream_pos *pos,
- const struct type_class_bitfield *bitfield_class,
- uint64_t v);
- void (*bitfield_signed_write)(struct stream_pos *pos,
- const struct type_class_bitfield *bitfield_class,
- int64_t v);