Store the content of text arrays both in the "elems" array and in a
string. While it does duplicate the data, this makes it possible to
access arrays containing UTF-8 or ASCII data the same way as regular
arrays.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
g_string_insert_len(array_definition->string,
0, (char *) ctf_get_pos_addr(pos),
array_declaration->len);
- ctf_move_pos(pos, array_declaration->len * CHAR_BIT);
- return 0;
}
}
}
|| integer_declaration->encoding == CTF_STRING_ASCII) {
array->string = g_string_new("");
-
- if (integer_declaration->len == CHAR_BIT
- && integer_declaration->p.alignment == CHAR_BIT) {
- return &array->p;
- }
}
}