Lines Matching refs:buffer

49             uint8_t buffer[1024];
50 lfs_file_read(&lfs, &file, buffer, size) => size;
51 assert(memcmp(buffer, names[n], size) == 0);
80 uint8_t buffer[1024];
81 memcpy(buffer, names[n], size);
86 lfs_file_write(&lfs, &file, buffer, size) => size;
100 uint8_t buffer[1024];
101 lfs_file_read(&lfs, &file, buffer, size) => size;
102 assert(memcmp(buffer, names[n], size) == 0);
152 uint8_t buffer[1024];
153 lfs_file_read(&lfs, &file, buffer, size) => size;
154 assert(memcmp(buffer, names[n], size) == 0);
195 uint8_t buffer[1024];
196 memcpy(buffer, names[n], size);
198 lfs_file_write(&lfs, &file, buffer, size) => size;
212 uint8_t buffer[1024];
213 lfs_file_read(&lfs, &file, buffer, size) => size;
214 assert(memcmp(buffer, names[n], size) == 0);
240 uint8_t buffer[1024];
241 memcpy(buffer, "exhaustion", size);
242 lfs_file_write(&lfs, &file, buffer, size) => size;
246 memcpy(buffer, "blahblahblahblah", size);
249 res = lfs_file_write(&lfs, &file, buffer, size);
268 lfs_file_read(&lfs, &file, buffer, size) => size;
269 memcmp(buffer, "exhaustion", size) => 0;
285 uint8_t buffer[1024];
286 memcpy(buffer, "buffering", size);
288 lfs_file_write(&lfs, &file, buffer, size) => size;
295 memcpy(buffer, "exhaustion", size);
296 lfs_file_write(&lfs, &file, buffer, size) => size;
300 memcpy(buffer, "blahblahblahblah", size);
303 res = lfs_file_write(&lfs, &file, buffer, size);
322 lfs_file_read(&lfs, &file, buffer, size) => size;
323 memcmp(buffer, "exhaustion", size) => 0;
339 uint8_t buffer[1024];
340 memcpy(buffer, "blahblahblahblah", size);
346 err = lfs_file_write(&lfs, &file, buffer, size);
364 lfs_file_write(&lfs, &file, buffer, size) => size;
375 lfs_file_write(&lfs, &file, buffer, size) => size;
397 uint8_t buffer[1024];
398 strcpy((char*)buffer, "waka");
402 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
413 strcpy((char*)buffer, "waka");
416 lfs_file_write(&lfs, &file, buffer, size) => size;
430 strcpy((char*)buffer, "chomp");
433 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
445 strcpy((char*)buffer, "chomp");
448 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
463 strcpy((char*)buffer, "waka");
468 assert(memcmp(rbuffer, buffer, size) == 0);
496 uint8_t buffer[1024];
497 memcpy(buffer, "blahblahblahblah", size);
503 err = lfs_file_write(&lfs, &file, buffer, size);
524 lfs_file_write(&lfs, &file, buffer, size) => size;
570 uint8_t buffer[1024];
571 memcpy(&buffer[i], "hi", 2);
573 uint8_t buffer[1024];
574 lfs_file_write(&lfs, &file, buffer, cfg->block_size) => cfg->block_size;
579 memcpy(buffer, "blahblahblahblah", size);
583 lfs_file_write(&lfs, &file, buffer, size) => size;
598 memcpy(&buffer[i], "hi", 2);
600 lfs_file_write(&lfs, &file, buffer, 2*cfg->block_size) => LFS_ERR_NOSPC;
620 uint8_t buffer[1024];
621 memcpy(buffer, "blahblahblahblah", size);
625 lfs_file_write(&lfs, &file, buffer, size) => size;
632 memcpy(buffer, "blahblahblahblah", size);
636 lfs_file_write(&lfs, &file, buffer, size) => size;
649 memcpy(buffer, "blahblahblahblah", size);
653 lfs_file_write(&lfs, &file, buffer, size) => size;
663 memcpy(buffer, "blahblahblahblah", size);
667 lfs_file_write(&lfs, &file, buffer, size) => size;
688 uint8_t buffer[1024];
689 memcpy(buffer, "blahblahblahblah", size);
693 lfs_file_write(&lfs, &file, buffer, size) => size;
700 memcpy(buffer, "blahblahblahblah", size);
704 lfs_file_write(&lfs, &file, buffer, size) => size;
717 memcpy(buffer, "blahblahblahblah", size);
721 lfs_file_write(&lfs, &file, buffer, size) => size;