Lines Matching refs:size
16 size_t size = strlen((char*)buffer);
17 for (lfs_off_t j = 0; j < LARGESIZE; j += size) {
18 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
19 => lfs_min(size, LARGESIZE-j);
40 size = strlen("hair");
41 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
42 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
43 => lfs_min(size, MEDIUMSIZE-j);
44 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
46 lfs_file_read(&lfs, &file, buffer, size) => 0;
67 size_t size = strlen((char*)buffer);
68 for (lfs_off_t j = 0; j < LARGESIZE; j += size) {
69 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
70 => lfs_min(size, LARGESIZE-j);
84 size = strlen("hair");
85 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
86 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
87 => lfs_min(size, MEDIUMSIZE-j);
88 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
90 lfs_file_read(&lfs, &file, buffer, size) => 0;
99 size = strlen("hair");
100 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
101 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
102 => lfs_min(size, MEDIUMSIZE-j);
103 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
105 lfs_file_read(&lfs, &file, buffer, size) => 0;
122 size_t size = lfs_min(lfs.cfg->cache_size, sizeof(buffer)/2);
123 lfs_size_t qsize = size / 4;
125 uint8_t *rb = buffer + size;
126 for (lfs_off_t j = 0; j < size; ++j) {
130 /* Spread sequence over size */
131 lfs_file_write(&lfs, &file, wb, size) => size;
132 lfs_file_size(&lfs, &file) => size;
133 lfs_file_tell(&lfs, &file) => size;
139 lfs_size_t trunc = size - qsize;
145 lfs_file_read(&lfs, &file, rb, size) => trunc;
160 lfs_file_read(&lfs, &file, rb, size) => trunc - qsize;
182 size_t size = strlen((char*)buffer);
183 for (lfs_off_t j = 0; j < LARGESIZE; j += size) {
184 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
185 => lfs_min(size, LARGESIZE-j);
202 size = strlen((char*)buffer);
203 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
204 lfs_file_write(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
205 => lfs_min(size, MEDIUMSIZE-j);
216 size = strlen("bald");
217 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
218 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
219 => lfs_min(size, MEDIUMSIZE-j);
220 memcmp(buffer, "bald", lfs_min(size, MEDIUMSIZE-j)) => 0;
222 lfs_file_read(&lfs, &file, buffer, size) => 0;
245 size_t size = lfs_file_size(&lfs, &file);
246 assert(size == 0 ||
247 size == (size_t)LARGESIZE ||
248 size == (size_t)MEDIUMSIZE ||
249 size == (size_t)SMALLSIZE);
250 for (lfs_off_t j = 0; j < size; j += 4) {
252 lfs_file_read(&lfs, &file, buffer, lfs_min(4, size-j))
253 => 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);
266 size_t size = strlen((char*)buffer);
267 for (lfs_off_t j = 0; j < LARGESIZE; j += size) {
268 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
269 => lfs_min(size, LARGESIZE-j);
281 size = strlen((char*)buffer);
282 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
283 lfs_file_write(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
284 => lfs_min(size, MEDIUMSIZE-j);
294 size = strlen((char*)buffer);
295 for (lfs_off_t j = 0; j < SMALLSIZE; j += size) {
296 lfs_file_write(&lfs, &file, buffer, lfs_min(size, SMALLSIZE-j))
297 => lfs_min(size, SMALLSIZE-j);
369 size_t size = strlen((char*)buffer);
370 for (lfs_off_t j = 0; j < startsizes[i]; j += size) {
371 lfs_file_write(&lfs, &file, buffer, size) => size;
397 size_t size = strlen("hair");
399 for (; j < startsizes[i] && j < hotsizes[i]; j += size) {
401 lfs_file_read(&lfs, &file, buffer, size) => size;
402 memcmp(buffer, "hair", size) => 0;
405 for (; j < hotsizes[i]; j += size) {
407 lfs_file_read(&lfs, &file, buffer, size) => size;
408 memcmp(buffer, "\0\0\0\0", size) => 0;
428 size_t size = strlen("hair");
431 j += size) {
433 lfs_file_read(&lfs, &file, buffer, size) => size;
434 memcmp(buffer, "hair", size) => 0;
437 for (; j < coldsizes[i]; j += size) {
439 lfs_file_read(&lfs, &file, buffer, size) => size;
440 memcmp(buffer, "\0\0\0\0", size) => 0;
462 size_t size = strlen((char*)buffer);
463 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
464 lfs_file_write(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
465 => lfs_min(size, MEDIUMSIZE-j);
468 lfs_file_truncate(&lfs, &file, j+lfs_min(size, MEDIUMSIZE-j)) => 0;
477 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
478 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
479 => lfs_min(size, MEDIUMSIZE-j);
480 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
482 lfs_file_read(&lfs, &file, buffer, size) => 0;
491 for (lfs_off_t j = 0; j < MEDIUMSIZE; j += size) {
492 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
493 => lfs_min(size, MEDIUMSIZE-j);
494 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
496 lfs_file_read(&lfs, &file, buffer, size) => 0;