Lines Matching refs:size
8 size = strlen("Hello World!")+1;
10 lfs_file_write(&lfs, &file, buffer, size) => size;
16 lfs_file_read(&lfs, &file, buffer, size) => size;
302 // can only be 0 (new file) or full size
303 size = lfs_file_size(&lfs, &file);
304 assert(size == 0 || size == SIZE);
356 // with syncs we could be any size, but it at least must be valid data
357 size = lfs_file_size(&lfs, &file);
358 assert(size <= SIZE);
360 for (lfs_size_t i = 0; i < size; i += CHUNKSIZE) {
361 lfs_size_t chunk = lfs_min(CHUNKSIZE, size-i);
373 size = lfs_file_size(&lfs, &file);
374 assert(size <= SIZE);
376 lfs_size_t skip = (MODE == LFS_O_APPEND) ? size : 0;
417 size = 7;
418 snprintf(wbuffer, size, "Hi %03d", i);
419 lfs_file_write(&lfs, &file, wbuffer, size) => size;
424 lfs_file_read(&lfs, &file, rbuffer, size) => size;
442 size = 7;
443 snprintf(wbuffer, size, "Hi %03d", i);
444 lfs_file_write(&lfs, &file, wbuffer, size) => size;
451 lfs_file_read(&lfs, &file, rbuffer, size) => size;
472 size = 7;
473 snprintf(wbuffer, size, "Hi %03d", i);
474 if ((lfs_size_t)lfs_file_size(&lfs, &file) != size) {
475 lfs_file_write(&lfs, &file, wbuffer, size) => size;
481 lfs_file_read(&lfs, &file, rbuffer, size) => size;