Lines Matching refs:read_buf
37 uint8_t read_buf[MEM_AREA_SZ] = {0}; in ZTEST() local
75 ret = pbuf_read(&pb, read_buf, ret-1); in ZTEST()
78 ret = pbuf_read(&pb, read_buf, ret); in ZTEST()
81 zassert_mem_equal(read_buf, write_buf, ret); in ZTEST()
87 ret = pbuf_read(&pb, read_buf, ret); in ZTEST()
90 zassert_mem_equal(read_buf, write_buf+MSGA_SZ, ret); in ZTEST()
103 ret = pbuf_read(&pb, read_buf, ret); in ZTEST()
106 zassert_mem_equal(write_buf, read_buf, MPS); in ZTEST()
143 uint8_t read_buf[MEM_AREA_SZ]; in ZTEST() local
154 zassert_equal(pbuf_read(NULL, read_buf, 10), -EINVAL); in ZTEST()
169 zassert_equal(pbuf_read(&pb2, read_buf, 1), -ENOMEM); in ZTEST()
175 zassert_equal(pbuf_read(&pb2, read_buf, 4), 4); in ZTEST()
178 zassert_mem_equal(read_buf, write_buf, 4); in ZTEST()
181 zassert_equal(pbuf_read(&pb2, read_buf, 10), 0); in ZTEST()
182 zassert_equal(pbuf_read(&pb2, read_buf, 10), 0); in ZTEST()
183 zassert_equal(pbuf_read(&pb2, read_buf, 10), 0); in ZTEST()