-#define ctf_user_array(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, _length, none, 1, 0)
+#define ctf_user_array(_type, _item, _src, _length) \
+ _ctf_array_encoded(_type, _item, _src, \
+ _length, none, __BYTE_ORDER, 10, 1, 0)
+
+#undef ctf_user_array_hex
+#define ctf_user_array_hex(_type, _item, _src, _length) \
+ _ctf_array_encoded(_type, _item, _src, \
+ _length, none, __BYTE_ORDER, 16, 1, 0)
+
+#undef ctf_user_array_network
+#define ctf_user_array_network(_type, _item, _src, _length) \
+ _ctf_array_encoded(_type, _item, _src, \
+ _length, none, __BIG_ENDIAN, 10, 1, 0)
+
+#undef ctf_user_array_network_hex
+#define ctf_user_array_network_hex(_type, _item, _src, _length) \
+ _ctf_array_encoded(_type, _item, _src, \
+ _length, none, __BIG_ENDIAN, 16, 1, 0)