Lines Matching refs:size
10 lfs_size_t size = strlen("Hello World!")+1;
13 lfs_file_write(&lfs, &file, buffer, size) => size;
19 lfs_file_read(&lfs, &file, buffer, size) => size;
320 // can only be 0 (new file) or full size
321 lfs_size_t size = lfs_file_size(&lfs, &file);
322 assert(size == 0 || size == SIZE);
377 // with syncs we could be any size, but it at least must be valid data
378 lfs_size_t size = lfs_file_size(&lfs, &file);
379 assert(size <= SIZE);
381 for (lfs_size_t i = 0; i < size; i += CHUNKSIZE) {
382 lfs_size_t chunk = lfs_min(CHUNKSIZE, size-i);
394 lfs_size_t size = lfs_file_size(&lfs, &file);
395 assert(size <= SIZE);
397 lfs_size_t skip = (MODE == LFS_O_APPEND) ? size : 0;
441 lfs_size_t size = 7;
443 lfs_file_write(&lfs, &file, wbuffer, size) => size;
448 lfs_file_read(&lfs, &file, rbuffer, size) => size;
469 lfs_size_t size = 7;
471 lfs_file_write(&lfs, &file, wbuffer, size) => size;
478 lfs_file_read(&lfs, &file, rbuffer, size) => size;
502 lfs_size_t size = 7;
504 if ((lfs_size_t)lfs_file_size(&lfs, &file) != size) {
505 lfs_file_write(&lfs, &file, wbuffer, size) => size;
511 lfs_file_read(&lfs, &file, rbuffer, size) => size;