Lines Matching defs:buf
240 unsigned char buf[40];
243 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 0, 0);
246 CU_ASSERT(memcmp(buf, teststr, result) == 0);
252 unsigned char buf[40];
255 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5, 268);
258 CU_ASSERT(memcmp(buf, teststr, result) == 0);
264 unsigned char buf[40];
267 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 14, 1);
270 CU_ASSERT(memcmp(buf, teststr, result) == 0);
276 unsigned char buf[40];
279 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 268, 184);
282 CU_ASSERT(memcmp(buf, teststr, result) == 0);
288 unsigned char buf[40];
291 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5133, 268);
294 CU_ASSERT(memcmp(buf, teststr, result) == 0);
300 unsigned char buf[40];
303 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 65535, 65535);
306 CU_ASSERT(memcmp(buf, teststr, result) == 0);
313 unsigned char buf[40];
316 result = coap_opt_encode((coap_opt_t *)buf, sizeof(buf), 3,
322 CU_ASSERT(memcmp(buf, teststr, sizeof(teststr)) == 0);
328 unsigned char buf[40];
331 result = coap_opt_encode((coap_opt_t *)buf, 8, 15,
336 result = coap_opt_encode((coap_opt_t *)buf, 1, 15,
345 unsigned char buf[40] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
348 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 269, 1);
351 CU_ASSERT(memcmp(buf, teststr, result) == 0);