Lines Matching full:buf
14 NET_BUF_SIMPLE_DEFINE_STATIC(buf, 16);
36 net_buf_simple_reset(&buf); in net_buf_simple_test_suite_before()
46 net_buf_simple_clone(&buf, &clone); in ZTEST()
48 zassert_equal(buf.data, clone.data, "Incorrect clone data pointer"); in ZTEST()
53 net_buf_simple_add_mem(&buf, &le16, sizeof(le16)); in ZTEST()
55 zassert_equal(u16, net_buf_simple_pull_le16(&buf), in ZTEST()
61 net_buf_simple_add_mem(&buf, &be16, sizeof(be16)); in ZTEST()
63 zassert_equal(u16, net_buf_simple_pull_be16(&buf), in ZTEST()
69 net_buf_simple_add_le16(&buf, u16); in ZTEST()
71 zassert_mem_equal(le16, net_buf_simple_pull_mem(&buf, sizeof(le16)), in ZTEST()
77 net_buf_simple_add_be16(&buf, u16); in ZTEST()
79 zassert_mem_equal(be16, net_buf_simple_pull_mem(&buf, sizeof(be16)), in ZTEST()
85 net_buf_simple_add_mem(&buf, &le24, sizeof(le24)); in ZTEST()
87 zassert_equal(u24, net_buf_simple_pull_le24(&buf), in ZTEST()
93 net_buf_simple_add_mem(&buf, &be24, sizeof(be24)); in ZTEST()
95 zassert_equal(u24, net_buf_simple_pull_be24(&buf), in ZTEST()
101 net_buf_simple_add_le24(&buf, u24); in ZTEST()
103 zassert_mem_equal(le24, net_buf_simple_pull_mem(&buf, sizeof(le24)), in ZTEST()
109 net_buf_simple_add_be24(&buf, u24); in ZTEST()
111 zassert_mem_equal(be24, net_buf_simple_pull_mem(&buf, sizeof(be24)), in ZTEST()
117 net_buf_simple_add_mem(&buf, &le32, sizeof(le32)); in ZTEST()
119 zassert_equal(u32, net_buf_simple_pull_le32(&buf), in ZTEST()
125 net_buf_simple_add_mem(&buf, &be32, sizeof(be32)); in ZTEST()
127 zassert_equal(u32, net_buf_simple_pull_be32(&buf), in ZTEST()
133 net_buf_simple_add_le32(&buf, u32); in ZTEST()
135 zassert_mem_equal(le32, net_buf_simple_pull_mem(&buf, sizeof(le32)), in ZTEST()
141 net_buf_simple_add_be32(&buf, u32); in ZTEST()
143 zassert_mem_equal(be32, net_buf_simple_pull_mem(&buf, sizeof(be32)), in ZTEST()
149 net_buf_simple_add_mem(&buf, &le40, sizeof(le40)); in ZTEST()
151 zassert_equal(u40, net_buf_simple_pull_le40(&buf), in ZTEST()
157 net_buf_simple_add_mem(&buf, &be40, sizeof(be40)); in ZTEST()
159 zassert_equal(u40, net_buf_simple_pull_be40(&buf), in ZTEST()
165 net_buf_simple_add_le40(&buf, u40); in ZTEST()
167 zassert_mem_equal(le40, net_buf_simple_pull_mem(&buf, sizeof(le40)), in ZTEST()
173 net_buf_simple_add_be40(&buf, u40); in ZTEST()
175 zassert_mem_equal(be40, net_buf_simple_pull_mem(&buf, sizeof(be40)), in ZTEST()
181 net_buf_simple_add_mem(&buf, &le48, sizeof(le48)); in ZTEST()
183 zassert_equal(u48, net_buf_simple_pull_le48(&buf), in ZTEST()
189 net_buf_simple_add_mem(&buf, &be48, sizeof(be48)); in ZTEST()
191 zassert_equal(u48, net_buf_simple_pull_be48(&buf), in ZTEST()
197 net_buf_simple_add_le48(&buf, u48); in ZTEST()
199 zassert_mem_equal(le48, net_buf_simple_pull_mem(&buf, sizeof(le48)), in ZTEST()
205 net_buf_simple_add_be48(&buf, u48); in ZTEST()
207 zassert_mem_equal(be48, net_buf_simple_pull_mem(&buf, sizeof(be48)), in ZTEST()
213 net_buf_simple_add_mem(&buf, &le64, sizeof(le64)); in ZTEST()
215 zassert_equal(u64, net_buf_simple_pull_le64(&buf), in ZTEST()
221 net_buf_simple_add_mem(&buf, &be64, sizeof(be64)); in ZTEST()
223 zassert_equal(u64, net_buf_simple_pull_be64(&buf), in ZTEST()
229 net_buf_simple_add_le64(&buf, u64); in ZTEST()
231 zassert_mem_equal(le64, net_buf_simple_pull_mem(&buf, sizeof(le64)), in ZTEST()
237 net_buf_simple_add_be64(&buf, u64); in ZTEST()
239 zassert_mem_equal(be64, net_buf_simple_pull_mem(&buf, sizeof(be64)), in ZTEST()
245 net_buf_simple_reserve(&buf, 16); in ZTEST()
247 net_buf_simple_push_mem(&buf, &le16, sizeof(le16)); in ZTEST()
249 zassert_equal(u16, net_buf_simple_remove_le16(&buf), in ZTEST()
255 net_buf_simple_reserve(&buf, 16); in ZTEST()
257 net_buf_simple_push_mem(&buf, &be16, sizeof(be16)); in ZTEST()
259 zassert_equal(u16, net_buf_simple_remove_be16(&buf), in ZTEST()
265 net_buf_simple_reserve(&buf, 16); in ZTEST()
267 net_buf_simple_push_le16(&buf, u16); in ZTEST()
269 zassert_mem_equal(le16, net_buf_simple_remove_mem(&buf, sizeof(le16)), in ZTEST()
275 net_buf_simple_reserve(&buf, 16); in ZTEST()
277 net_buf_simple_push_be16(&buf, u16); in ZTEST()
279 zassert_mem_equal(be16, net_buf_simple_remove_mem(&buf, sizeof(be16)), in ZTEST()
285 net_buf_simple_reserve(&buf, 16); in ZTEST()
287 net_buf_simple_push_mem(&buf, &le24, sizeof(le24)); in ZTEST()
289 zassert_equal(u24, net_buf_simple_remove_le24(&buf), in ZTEST()
295 net_buf_simple_reserve(&buf, 16); in ZTEST()
297 net_buf_simple_push_mem(&buf, &be24, sizeof(be24)); in ZTEST()
299 zassert_equal(u24, net_buf_simple_remove_be24(&buf), in ZTEST()
305 net_buf_simple_reserve(&buf, 16); in ZTEST()
307 net_buf_simple_push_le24(&buf, u24); in ZTEST()
309 zassert_mem_equal(le24, net_buf_simple_remove_mem(&buf, sizeof(le24)), in ZTEST()
315 net_buf_simple_reserve(&buf, 16); in ZTEST()
317 net_buf_simple_push_be24(&buf, u24); in ZTEST()
319 zassert_mem_equal(be24, net_buf_simple_remove_mem(&buf, sizeof(be24)), in ZTEST()
325 net_buf_simple_reserve(&buf, 16); in ZTEST()
327 net_buf_simple_push_mem(&buf, &le32, sizeof(le32)); in ZTEST()
329 zassert_equal(u32, net_buf_simple_remove_le32(&buf), in ZTEST()
335 net_buf_simple_reserve(&buf, 16); in ZTEST()
337 net_buf_simple_push_mem(&buf, &be32, sizeof(be32)); in ZTEST()
339 zassert_equal(u32, net_buf_simple_remove_be32(&buf), in ZTEST()
345 net_buf_simple_reserve(&buf, 16); in ZTEST()
347 net_buf_simple_push_le32(&buf, u32); in ZTEST()
349 zassert_mem_equal(le32, net_buf_simple_remove_mem(&buf, sizeof(le32)), in ZTEST()
355 net_buf_simple_reserve(&buf, 16); in ZTEST()
357 net_buf_simple_push_be32(&buf, u32); in ZTEST()
359 zassert_mem_equal(be32, net_buf_simple_remove_mem(&buf, sizeof(be32)), in ZTEST()
365 net_buf_simple_reserve(&buf, 16); in ZTEST()
367 net_buf_simple_push_mem(&buf, &le40, sizeof(le40)); in ZTEST()
369 zassert_equal(u40, net_buf_simple_remove_le40(&buf), "Invalid 40 bits byte order"); in ZTEST()
374 net_buf_simple_reserve(&buf, 16); in ZTEST()
376 net_buf_simple_push_mem(&buf, &be40, sizeof(be40)); in ZTEST()
378 zassert_equal(u40, net_buf_simple_remove_be40(&buf), "Invalid 40 bits byte order"); in ZTEST()
383 net_buf_simple_reserve(&buf, 16); in ZTEST()
385 net_buf_simple_push_le40(&buf, u40); in ZTEST()
387 zassert_mem_equal(le40, net_buf_simple_remove_mem(&buf, sizeof(le40)), sizeof(le40), in ZTEST()
393 net_buf_simple_reserve(&buf, 16); in ZTEST()
395 net_buf_simple_push_be40(&buf, u40); in ZTEST()
397 zassert_mem_equal(be40, net_buf_simple_remove_mem(&buf, sizeof(be40)), sizeof(be40), in ZTEST()
403 net_buf_simple_reserve(&buf, 16); in ZTEST()
405 net_buf_simple_push_mem(&buf, &le48, sizeof(le48)); in ZTEST()
407 zassert_equal(u48, net_buf_simple_remove_le48(&buf), in ZTEST()
413 net_buf_simple_reserve(&buf, 16); in ZTEST()
415 net_buf_simple_push_mem(&buf, &be48, sizeof(be48)); in ZTEST()
417 zassert_equal(u48, net_buf_simple_remove_be48(&buf), in ZTEST()
423 net_buf_simple_reserve(&buf, 16); in ZTEST()
425 net_buf_simple_push_le48(&buf, u48); in ZTEST()
427 zassert_mem_equal(le48, net_buf_simple_remove_mem(&buf, sizeof(le48)), in ZTEST()
433 net_buf_simple_reserve(&buf, 16); in ZTEST()
435 net_buf_simple_push_be48(&buf, u48); in ZTEST()
437 zassert_mem_equal(be48, net_buf_simple_remove_mem(&buf, sizeof(be48)), in ZTEST()
443 net_buf_simple_reserve(&buf, 16); in ZTEST()
445 net_buf_simple_push_mem(&buf, &le64, sizeof(le64)); in ZTEST()
447 zassert_equal(u64, net_buf_simple_remove_le64(&buf), in ZTEST()
453 net_buf_simple_reserve(&buf, 16); in ZTEST()
455 net_buf_simple_push_mem(&buf, &be64, sizeof(be64)); in ZTEST()
457 zassert_equal(u64, net_buf_simple_remove_be64(&buf), in ZTEST()
463 net_buf_simple_reserve(&buf, 16); in ZTEST()
465 net_buf_simple_push_le64(&buf, u64); in ZTEST()
467 zassert_mem_equal(le64, net_buf_simple_remove_mem(&buf, sizeof(le64)), in ZTEST()
473 net_buf_simple_reserve(&buf, 16); in ZTEST()
475 net_buf_simple_push_be64(&buf, u64); in ZTEST()
477 zassert_mem_equal(be64, net_buf_simple_remove_mem(&buf, sizeof(be64)), in ZTEST()