Lines Matching defs:buf
114 uint8_t buf[16];
118 result = coap_encode_var_safe(buf, sizeof(buf), 0x00);
122 CU_ASSERT(memcmp(buf, data, result) == 0);
127 uint8_t buf[16];
131 result = coap_encode_var_safe(buf, sizeof(buf), 0x01);
135 CU_ASSERT(memcmp(buf, data, result) == 0);
140 uint8_t buf[16];
144 result = coap_encode_var_safe8(buf, sizeof(buf), 0x05060708);
148 CU_ASSERT(memcmp(buf, data, result) == 0);
156 uint8_t buf[16];
157 result = coap_encode_var_safe(buf, 2, 0x01020304);
164 uint8_t buf[16];
168 result = coap_encode_var_safe8(buf, sizeof(buf), 0x00);
172 CU_ASSERT(memcmp(buf, data, result) == 0);
177 uint8_t buf[16];
181 result = coap_encode_var_safe8(buf, sizeof(buf), 0x01);
185 CU_ASSERT(memcmp(buf, data, result) == 0);
190 uint8_t buf[16];
194 result = coap_encode_var_safe8(buf, sizeof(buf), 0x0102030405060708);
198 CU_ASSERT(memcmp(buf, data, result) == 0);
206 uint8_t buf[16];
207 result = coap_encode_var_safe8(buf, 2, 0x0102030405060708);