Lines Matching defs:obj

36 		json_object *obj = json_object_new_object();
37 add_bytes_hex(obj, "data", test_bytes_1, sizeof(test_bytes_1));
38 json_object *field = json_object_object_get(obj, "data");
42 json_object_put(obj);
47 json_object *obj = json_object_new_object();
48 add_bytes_hex(obj, "data", test_bytes_2, sizeof(test_bytes_2));
49 json_object *field = json_object_object_get(obj, "data");
53 json_object_put(obj);
58 json_object *obj = json_object_new_object();
59 add_bytes_hex(obj, "data", test_bytes_3, sizeof(test_bytes_3));
60 json_object *field = json_object_object_get(obj, "data");
64 json_object_put(obj);
69 json_object *obj = json_object_new_object();
70 add_bytes_hex(obj, "data", test_bytes_4, sizeof(test_bytes_4));
71 json_object *field = json_object_object_get(obj, "data");
75 json_object_put(obj);
80 json_object *obj = json_object_new_object();
81 add_bytes_hex(obj, "data", test_bytes_5, sizeof(test_bytes_5));
82 json_object *field = json_object_object_get(obj, "data");
86 json_object_put(obj);
99 json_object *obj = json_object_new_object();
100 add_string(obj, "data", test_hex_1);
102 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
107 json_object_put(obj);
112 json_object *obj = json_object_new_object();
113 add_string(obj, "data", test_hex_2);
115 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
120 json_object_put(obj);
125 json_object *obj = json_object_new_object();
126 add_string(obj, "data", test_hex_3);
128 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
133 json_object_put(obj);
138 json_object *obj = json_object_new_object();
139 add_string(obj, "data", "0123456789ABCDEF");
141 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
146 json_object_put(obj);
151 json_object *obj = json_object_new_object();
152 add_string(obj, "data", "DeAdBeEf");
154 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
159 json_object_put(obj);
178 json_object *obj = json_object_new_object();
179 add_bytes_hex(obj, "data", NULL, 4);
180 json_object *field = json_object_object_get(obj, "data");
182 json_object_put(obj);
187 json_object *obj = json_object_new_object();
188 add_bytes_hex(obj, "data", test_bytes_1, 0);
189 json_object *field = json_object_object_get(obj, "data");
191 json_object_put(obj);
203 json_object *obj = json_object_new_object();
204 add_string(obj, "data", "deadbeef");
205 UINT8 *bytes = get_bytes_hex(obj, "data", NULL);
207 json_object_put(obj);
212 json_object *obj = json_object_new_object();
214 UINT8 *bytes = get_bytes_hex(obj, "nonexistent", &out_len);
216 json_object_put(obj);
221 json_object *obj = json_object_new_object();
222 add_int(obj, "data", 12345);
224 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
226 json_object_put(obj);
231 json_object *obj = json_object_new_object();
232 add_string(obj, "data", "abc");
234 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
236 json_object_put(obj);
241 json_object *obj = json_object_new_object();
242 add_string(obj, "data", "deadbXef");
244 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
246 json_object_put(obj);
251 json_object *obj = json_object_new_object();
252 add_string(obj, "data", "");
254 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len);
261 json_object_put(obj);
276 json_object *obj = json_object_new_object();
277 add_bytes_hex(obj, "roundtrip", test_data, sizeof(test_data));
280 UINT8 *decoded = get_bytes_hex(obj, "roundtrip", &out_len);
286 json_object_put(obj);