Home
last modified time | relevance | path

Searched refs:binn_new (Results 1 – 3 of 3) sorted by relevance

/third_party/iowow/src/json/tests/
Djbl_test_binn1.c332 CU_ASSERT(binn_new(-1, 0, NULL) == INVALID_BINN); in test1()
333 CU_ASSERT(binn_new(0, 0, NULL) == INVALID_BINN); in test1()
334 CU_ASSERT(binn_new(5, 0, NULL) == INVALID_BINN); in test1()
335 CU_ASSERT(binn_new(BINN_MAP, -1, NULL) == INVALID_BINN); in test1()
337 CU_ASSERT(binn_new(BINN_MAP, -1, ptr) == INVALID_BINN); in test1()
338 CU_ASSERT(binn_new(BINN_MAP, MIN_BINN_SIZE - 1, ptr) == INVALID_BINN); in test1()
341 obj1 = binn_new(BINN_LIST, 0, NULL); in test1()
356 list = binn_new(BINN_LIST, 0, NULL); in test1()
360 map = binn_new(BINN_MAP, 0, NULL); in test1()
364 obj = binn_new(BINN_OBJECT, 0, NULL); in test1()
[all …]
/third_party/iowow/src/json/
Diwbinn.c214 binn* binn_new(int type, int size, void *pointer) { in binn_new() function
238 return binn_new(BINN_LIST, 0, 0); in binn_list()
242 return binn_new(BINN_MAP, 0, 0); in binn_map()
246 return binn_new(BINN_OBJECT, 0, 0); in binn_object()
1027 item = binn_new(type, size - header_size + MAX_BINN_HEADER, NULL); in binn_copy()
Diwbinn.h271 IW_ALLOC binn* binn_new(int type, int size, void *buffer);