Lines Matching refs:buffer
14 uint8_t buffer[1024];
15 strcpy((char*)buffer, "hair");
16 size_t size = strlen((char*)buffer);
18 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
42 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
44 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
46 lfs_file_read(&lfs, &file, buffer, size) => 0;
65 uint8_t buffer[1024];
66 strcpy((char*)buffer, "hair");
67 size_t size = strlen((char*)buffer);
69 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
86 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
88 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
90 lfs_file_read(&lfs, &file, buffer, size) => 0;
101 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
103 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
105 lfs_file_read(&lfs, &file, buffer, size) => 0;
121 uint8_t buffer[1024];
122 size_t size = lfs_min(lfs.cfg->cache_size, sizeof(buffer)/2);
124 uint8_t *wb = buffer;
125 uint8_t *rb = buffer + size;
180 uint8_t buffer[1024];
181 strcpy((char*)buffer, "hair");
182 size_t size = strlen((char*)buffer);
184 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
201 strcpy((char*)buffer, "bald");
202 size = strlen((char*)buffer);
204 lfs_file_write(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
218 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
220 memcmp(buffer, "bald", lfs_min(size, MEDIUMSIZE-j)) => 0;
222 lfs_file_read(&lfs, &file, buffer, size) => 0;
251 uint8_t buffer[1024];
252 lfs_file_read(&lfs, &file, buffer, lfs_min(4, size-j))
254 assert(memcmp(buffer, "hair", lfs_min(4, size-j)) == 0 ||
255 memcmp(buffer, "bald", lfs_min(4, size-j)) == 0 ||
256 memcmp(buffer, "comb", lfs_min(4, size-j)) == 0);
264 uint8_t buffer[1024];
265 strcpy((char*)buffer, "hair");
266 size_t size = strlen((char*)buffer);
268 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
280 strcpy((char*)buffer, "bald");
281 size = strlen((char*)buffer);
283 lfs_file_write(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
293 strcpy((char*)buffer, "comb");
294 size = strlen((char*)buffer);
296 lfs_file_write(&lfs, &file, buffer, lfs_min(size, SMALLSIZE-j))
367 uint8_t buffer[1024];
368 strcpy((char*)buffer, "hair");
369 size_t size = strlen((char*)buffer);
371 lfs_file_write(&lfs, &file, buffer, size) => size;
400 uint8_t buffer[1024];
401 lfs_file_read(&lfs, &file, buffer, size) => size;
402 memcmp(buffer, "hair", size) => 0;
406 uint8_t buffer[1024];
407 lfs_file_read(&lfs, &file, buffer, size) => size;
408 memcmp(buffer, "\0\0\0\0", size) => 0;
432 uint8_t buffer[1024];
433 lfs_file_read(&lfs, &file, buffer, size) => size;
434 memcmp(buffer, "hair", size) => 0;
438 uint8_t buffer[1024];
439 lfs_file_read(&lfs, &file, buffer, size) => size;
440 memcmp(buffer, "\0\0\0\0", size) => 0;
460 uint8_t buffer[1024];
461 strcpy((char*)buffer, "hair");
462 size_t size = strlen((char*)buffer);
464 lfs_file_write(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
478 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
480 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
482 lfs_file_read(&lfs, &file, buffer, size) => 0;
492 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
494 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
496 lfs_file_read(&lfs, &file, buffer, size) => 0;