Lines Matching refs:buffer
40 lfs_file_read(&lfs, &file, buffer, size) => size;
41 assert(memcmp(buffer, names[n], size) == 0);
65 memcpy(buffer, names[n], size);
67 lfs_file_write(&lfs, &file, buffer, size) => size;
79 lfs_file_read(&lfs, &file, buffer, size) => size;
80 assert(memcmp(buffer, names[n], size) == 0);
125 lfs_file_read(&lfs, &file, buffer, size) => size;
126 assert(memcmp(buffer, names[n], size) == 0);
162 memcpy(buffer, names[n], size);
164 lfs_file_write(&lfs, &file, buffer, size) => size;
176 lfs_file_read(&lfs, &file, buffer, size) => size;
177 assert(memcmp(buffer, names[n], size) == 0);
199 memcpy(buffer, "exhaustion", size);
200 lfs_file_write(&lfs, &file, buffer, size) => size;
204 memcpy(buffer, "blahblahblahblah", size);
207 res = lfs_file_write(&lfs, &file, buffer, size);
223 lfs_file_read(&lfs, &file, buffer, size) => size;
224 memcmp(buffer, "exhaustion", size) => 0;
237 memcpy(buffer, "buffering", size);
239 lfs_file_write(&lfs, &file, buffer, size) => size;
246 memcpy(buffer, "exhaustion", size);
247 lfs_file_write(&lfs, &file, buffer, size) => size;
251 memcpy(buffer, "blahblahblahblah", size);
254 res = lfs_file_write(&lfs, &file, buffer, size);
270 lfs_file_read(&lfs, &file, buffer, size) => size;
271 memcmp(buffer, "exhaustion", size) => 0;
285 memcpy(buffer, "blahblahblahblah", size);
289 err = lfs_file_write(&lfs, &file, buffer, size);
305 lfs_file_write(&lfs, &file, buffer, size) => size;
316 lfs_file_write(&lfs, &file, buffer, size) => size;
335 strcpy((char*)buffer, "waka");
339 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
350 strcpy((char*)buffer, "waka");
353 lfs_file_write(&lfs, &file, buffer, size) => size;
367 strcpy((char*)buffer, "chomp");
370 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
382 strcpy((char*)buffer, "chomp");
385 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
398 strcpy((char*)buffer, "waka");
403 assert(memcmp(rbuffer, buffer, size) == 0);
429 memcpy(buffer, "blahblahblahblah", size);
433 err = lfs_file_write(&lfs, &file, buffer, size);
453 lfs_file_write(&lfs, &file, buffer, size) => size;
496 memcpy(&buffer[i], "hi", 2);
498 lfs_file_write(&lfs, &file, buffer, cfg.block_size) => cfg.block_size;
503 memcpy(buffer, "blahblahblahblah", size);
507 lfs_file_write(&lfs, &file, buffer, size) => size;
522 memcpy(&buffer[i], "hi", 2);
524 lfs_file_write(&lfs, &file, buffer, 2*cfg.block_size) => LFS_ERR_NOSPC;
542 memcpy(buffer, "blahblahblahblah", size);
546 lfs_file_write(&lfs, &file, buffer, size) => size;
553 memcpy(buffer, "blahblahblahblah", size);
557 lfs_file_write(&lfs, &file, buffer, size) => size;
570 memcpy(buffer, "blahblahblahblah", size);
574 lfs_file_write(&lfs, &file, buffer, size) => size;
584 memcpy(buffer, "blahblahblahblah", size);
588 lfs_file_write(&lfs, &file, buffer, size) => size;
607 memcpy(buffer, "blahblahblahblah", size);
611 lfs_file_write(&lfs, &file, buffer, size) => size;
618 memcpy(buffer, "blahblahblahblah", size);
622 lfs_file_write(&lfs, &file, buffer, size) => size;
635 memcpy(buffer, "blahblahblahblah", size);
639 lfs_file_write(&lfs, &file, buffer, size) => size;