-void _integer_type_free(struct type *type);
-
-void integer_copy(struct stream_pos *dest, const struct format *fdest,
- struct stream_pos *src, const struct format *fsrc,
- struct type *type)
-{
- struct type_integer *integer = container_of(type, struct type_integer,
- p);
- struct type_class_integer *int_class = integer->_class;
-
- if (!int_class->signedness) {
- uint64_t v;
-
- v = fsrc->uint_read(src, int_class);
- fdest->uint_write(dest, int_class, v);
- } else {
- int64_t v;
-
- v = fsrc->int_read(src, int_class);
- fdest->int_write(dest, int_class, v);
- }
-}