Home
last modified time | relevance | path

Searched refs:binn_object_set (Results 1 – 4 of 4) sorted by relevance

/third_party/iowow/src/json/tests/
Djbl_test_binn1.c412 CU_ASSERT(binn_object_set(list, "test", BINN_INT32, &i, 0) == FALSE); in test1()
415 CU_ASSERT(binn_object_set(map, "test", BINN_INT32, &i, 0) == FALSE); in test1()
425 CU_ASSERT(binn_object_set(obj, "test", -1, &i, 0) == FALSE); in test1()
426 CU_ASSERT(binn_object_set(obj, "test", 0x1FFFF, &i, 0) == FALSE); in test1()
439 CU_ASSERT(binn_object_set(obj, "test", BINN_INT8, NULL, 0) == FALSE); in test1()
440 CU_ASSERT(binn_object_set(obj, "test", BINN_INT16, NULL, 0) == FALSE); in test1()
441 CU_ASSERT(binn_object_set(obj, "test", BINN_INT32, NULL, 0) == FALSE); in test1()
442 CU_ASSERT(binn_object_set(obj, "test", BINN_INT64, NULL, 0) == FALSE); in test1()
450 CU_ASSERT(binn_object_set(obj, "test", BINN_BLOB, NULL, -1) == FALSE); in test1()
451 CU_ASSERT(binn_object_set(obj, "test", BINN_BLOB, NULL, 10) == FALSE); in test1()
[all …]
Djbl_test_binn2.c262 CU_ASSERT(binn_object_set(obj, "int32", BINN_INT32, &vint32, 0) == TRUE); in test_create_object_1()
264 CU_ASSERT(binn_object_set(obj, "int16", BINN_INT16, &vint16, 0) == TRUE); in test_create_object_1()
266 CU_ASSERT(binn_object_set(obj, "int8", BINN_INT8, &vint8, 0) == TRUE); in test_create_object_1()
268 CU_ASSERT(binn_object_set(obj, "int64", BINN_INT64, &vint64, 0) == TRUE); in test_create_object_1()
271 CU_ASSERT(binn_object_set(obj, "uint32", BINN_UINT32, &vuint32, 0) == TRUE); in test_create_object_1()
273 CU_ASSERT(binn_object_set(obj, "uint16", BINN_UINT16, &vuint16, 0) == TRUE); in test_create_object_1()
275 CU_ASSERT(binn_object_set(obj, "uint8", BINN_UINT8, &vuint8, 0) == TRUE); in test_create_object_1()
277 CU_ASSERT(binn_object_set(obj, "uint64", BINN_UINT64, &vuint64, 0) == TRUE); in test_create_object_1()
280 CU_ASSERT(binn_object_set(obj, "float32", BINN_FLOAT32, &vfloat32, 0) == TRUE); in test_create_object_1()
282 CU_ASSERT(binn_object_set(obj, "single", BINN_SINGLE, &vfloat32, 0) == TRUE); in test_create_object_1()
[all …]
/third_party/iowow/src/json/
Diwbinn.h293 BOOL binn_object_set(binn *obj, const char *key, int type, void *pvalue, int size);
754 return binn_object_set(obj, key, BINN_INT8, &value, 0); in binn_object_set_int8()
758 return binn_object_set(obj, key, BINN_INT16, &value, 0); in binn_object_set_int16()
762 return binn_object_set(obj, key, BINN_INT32, &value, 0); in binn_object_set_int32()
766 return binn_object_set(obj, key, BINN_INT64, &value, 0); in binn_object_set_int64()
770 return binn_object_set(obj, key, BINN_UINT8, &value, 0); in binn_object_set_uint8()
774 return binn_object_set(obj, key, BINN_UINT16, &value, 0); in binn_object_set_uint16()
778 return binn_object_set(obj, key, BINN_UINT32, &value, 0); in binn_object_set_uint32()
782 return binn_object_set(obj, key, BINN_UINT64, &value, 0); in binn_object_set_uint64()
786 return binn_object_set(obj, key, BINN_FLOAT32, &value, 0); in binn_object_set_float()
[all …]
Diwbinn.c2244 BOOL binn_object_set(binn *obj, const char *key, int type, void *pvalue, int size) { in binn_object_set() function
2266 return binn_object_set(item, name, type, pvalue, size); in binn_add_value()