Lines Matching refs:buffer
11 uint8_t buffer[1024];
12 strcpy((char*)buffer, "Hello World!");
13 lfs_file_write(&lfs, &file, buffer, size) => size;
19 lfs_file_read(&lfs, &file, buffer, size) => size;
20 assert(strcmp((char*)buffer, "Hello World!") == 0);
38 uint8_t buffer[1024];
42 buffer[b] = TEST_PRNG(&prng) & 0xff;
44 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
56 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
58 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
61 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
77 uint8_t buffer[1024];
84 buffer[b] = TEST_PRNG(&prng) & 0xff;
86 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
98 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
100 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
103 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
114 buffer[b] = TEST_PRNG(&prng) & 0xff;
116 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
128 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
130 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
140 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
142 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
146 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
162 uint8_t buffer[1024];
169 buffer[b] = TEST_PRNG(&prng) & 0xff;
171 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
183 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
185 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
188 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
199 buffer[b] = TEST_PRNG(&prng) & 0xff;
201 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
213 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
215 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
221 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
223 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
226 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
242 uint8_t buffer[1024];
249 buffer[b] = TEST_PRNG(&prng) & 0xff;
251 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
263 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
265 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
268 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
279 buffer[b] = TEST_PRNG(&prng) & 0xff;
281 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
293 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
295 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
298 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
316 uint8_t buffer[1024];
332 buffer[b] = TEST_PRNG(&prng) & 0xff;
334 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
344 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
346 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
349 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;
373 uint8_t buffer[1024];
383 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
385 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
404 buffer[b] = TEST_PRNG(&prng) & 0xff;
406 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
417 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
419 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
422 lfs_file_read(&lfs, &file, buffer, CHUNKSIZE) => 0;