Lines Matching refs:buffer
20 uint8_t buffer[1024];
21 memcpy(buffer, "kittycatcat", size);
23 lfs_file_write(&lfs, &file, buffer, size);
34 lfs_file_read(&lfs, &file, buffer, size) => size;
35 memcmp(buffer, "kittycatcat", size) => 0;
41 lfs_file_read(&lfs, &file, buffer, size) => size;
42 memcmp(buffer, "kittycatcat", size) => 0;
45 lfs_file_read(&lfs, &file, buffer, size) => size;
46 memcmp(buffer, "kittycatcat", size) => 0;
49 lfs_file_read(&lfs, &file, buffer, size) => size;
50 memcmp(buffer, "kittycatcat", size) => 0;
53 lfs_file_read(&lfs, &file, buffer, size) => size;
54 memcmp(buffer, "kittycatcat", size) => 0;
57 lfs_file_read(&lfs, &file, buffer, size) => size;
58 memcmp(buffer, "kittycatcat", size) => 0;
61 lfs_file_read(&lfs, &file, buffer, size) => size;
62 memcmp(buffer, "kittycatcat", size) => 0;
65 lfs_file_read(&lfs, &file, buffer, size) => size;
66 memcmp(buffer, "kittycatcat", size) => 0;
93 uint8_t buffer[1024];
94 memcpy(buffer, "kittycatcat", size);
96 lfs_file_write(&lfs, &file, buffer, size);
107 lfs_file_read(&lfs, &file, buffer, size) => size;
108 memcmp(buffer, "kittycatcat", size) => 0;
113 memcpy(buffer, "doggodogdog", size);
115 lfs_file_write(&lfs, &file, buffer, size) => size;
118 lfs_file_read(&lfs, &file, buffer, size) => size;
119 memcmp(buffer, "doggodogdog", size) => 0;
122 lfs_file_read(&lfs, &file, buffer, size) => size;
123 memcmp(buffer, "kittycatcat", size) => 0;
126 lfs_file_read(&lfs, &file, buffer, size) => size;
127 memcmp(buffer, "doggodogdog", size) => 0;
130 lfs_file_read(&lfs, &file, buffer, size) => size;
131 memcmp(buffer, "kittycatcat", size) => 0;
151 uint8_t buffer[1024];
152 memcpy(buffer, "kittycatcat", size);
154 lfs_file_write(&lfs, &file, buffer, size);
167 memcpy(buffer, "hedgehoghog", size);
169 lfs_file_write(&lfs, &file, buffer, size) => size;
171 lfs_file_read(&lfs, &file, buffer, size) => size;
172 memcmp(buffer, "hedgehoghog", size) => 0;
175 lfs_file_read(&lfs, &file, buffer, size) => size;
176 memcmp(buffer, "kittycatcat", size) => 0;
179 lfs_file_read(&lfs, &file, buffer, size) => size;
180 memcmp(buffer, "hedgehoghog", size) => 0;
185 lfs_file_read(&lfs, &file, buffer, size) => size;
186 memcmp(buffer, "kittycatcat", size) => 0;
189 lfs_file_read(&lfs, &file, buffer, size) => size;
190 memcmp(buffer, "hedgehoghog", size) => 0;
215 uint8_t buffer[1024];
216 memcpy(buffer, "kittycatcat", size);
218 lfs_file_write(&lfs, &file, buffer, size);
229 lfs_file_read(&lfs, &file, buffer, size) => 0;
231 memcpy(buffer, "porcupineee", size);
232 lfs_file_write(&lfs, &file, buffer, size) => size;
236 lfs_file_read(&lfs, &file, buffer, size) => size;
237 memcmp(buffer, "porcupineee", size) => 0;
241 lfs_file_read(&lfs, &file, buffer, size) => size;
242 memcmp(buffer, "\0\0\0\0\0\0\0\0\0\0\0", size) => 0;
269 uint8_t buffer[1024];
270 memcpy(buffer, "abcdefghijklmnopqrstuvwxyz", 26);
272 lfs_file_write(&lfs, &file, &buffer[j++ % 26], 1) => 1;
283 c => buffer[k++ % 26];
292 lfs_file_write(&lfs, &file, &buffer[j++ % 26], 1) => 1;
316 c => buffer[k++ % 26];
340 uint8_t buffer[1024];
347 memset(buffer, 0, 11+1);
348 lfs_file_read(&lfs, &file, buffer, 11) => 11;
349 assert(memcmp(buffer, "kittycatcat", 11) == 0 ||
350 memcmp(buffer, "doggodogdog", 11) == 0);
359 strcpy((char*)buffer, "kittycatcat");
360 size_t size = strlen((char*)buffer);
361 lfs_file_write(&lfs, &file, buffer, size) => size;
366 strcpy((char*)buffer, "doggodogdog");
367 size_t size = strlen((char*)buffer);
377 lfs_file_read(&lfs, &file, buffer, size) => size;
378 assert(memcmp(buffer, "kittycatcat", size) == 0 ||
379 memcmp(buffer, "doggodogdog", size) == 0);
380 if (memcmp(buffer, "doggodogdog", size) != 0) {
382 strcpy((char*)buffer, "doggodogdog");
383 lfs_file_write(&lfs, &file, buffer, size) => size;
385 lfs_file_read(&lfs, &file, buffer, size) => size;
386 assert(memcmp(buffer, "doggodogdog", size) == 0);
389 lfs_file_read(&lfs, &file, buffer, size) => size;
390 assert(memcmp(buffer, "doggodogdog", size) == 0);
398 lfs_file_read(&lfs, &file, buffer, size) => size;
399 assert(memcmp(buffer, "doggodogdog", size) == 0);