Lines Matching refs:buffer
51 uint8_t buffer[1024];
52 lfs_file_read(&lfs, &file, buffer, 5) => 5;
53 memcmp(buffer, "hola\n", 5) => 0;
54 lfs_file_read(&lfs, &file, buffer, 8) => 8;
55 memcmp(buffer, "bonjour\n", 8) => 0;
56 lfs_file_read(&lfs, &file, buffer, 6) => 6;
57 memcmp(buffer, "ohayo\n", 6) => 0;
111 uint8_t buffer[BLOCK_SIZE];
112 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
114 while (off >= 0 && buffer[off] == ERASE_VALUE) {
117 memset(&buffer[off-3], BLOCK_SIZE, 3);
119 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
149 lfs_file_read(&lfs, &file, buffer, 5) => 5;
150 memcmp(buffer, "hola\n", 5) => 0;
151 lfs_file_read(&lfs, &file, buffer, 8) => 8;
152 memcmp(buffer, "bonjour\n", 8) => 0;
153 lfs_file_read(&lfs, &file, buffer, 6) => 6;
154 memcmp(buffer, "ohayo\n", 6) => 0;
192 uint8_t buffer[BLOCK_SIZE];
193 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
195 while (off >= 0 && buffer[off] == ERASE_VALUE) {
198 memset(&buffer[off-3], BLOCK_SIZE, 3);
200 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
209 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
211 while (off >= 0 && buffer[off] == ERASE_VALUE) {
214 memset(&buffer[off-3], BLOCK_SIZE, 3);
216 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
244 lfs_file_read(&lfs, &file, buffer, 5) => 5;
245 memcmp(buffer, "hola\n", 5) => 0;
246 lfs_file_read(&lfs, &file, buffer, 8) => 8;
247 memcmp(buffer, "bonjour\n", 8) => 0;
248 lfs_file_read(&lfs, &file, buffer, 6) => 6;
249 memcmp(buffer, "ohayo\n", 6) => 0;
288 uint8_t buffer[BLOCK_SIZE];
289 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
291 while (off >= 0 && buffer[off] == ERASE_VALUE) {
294 memset(&buffer[off-3], BLOCK_SIZE, 3);
296 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
305 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
307 while (off >= 0 && buffer[off] == ERASE_VALUE) {
310 memset(&buffer[off-3], BLOCK_SIZE, 3);
312 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
347 lfs_file_read(&lfs, &file, buffer, 5) => 5;
348 memcmp(buffer, "hola\n", 5) => 0;
349 lfs_file_read(&lfs, &file, buffer, 8) => 8;
350 memcmp(buffer, "bonjour\n", 8) => 0;
351 lfs_file_read(&lfs, &file, buffer, 6) => 6;
352 memcmp(buffer, "ohayo\n", 6) => 0;
464 uint8_t buffer[1024];
465 lfs_file_read(&lfs, &file, buffer, 5) => 5;
466 memcmp(buffer, "hola\n", 5) => 0;
467 lfs_file_read(&lfs, &file, buffer, 8) => 8;
468 memcmp(buffer, "bonjour\n", 8) => 0;
469 lfs_file_read(&lfs, &file, buffer, 6) => 6;
470 memcmp(buffer, "ohayo\n", 6) => 0;
571 uint8_t buffer[BLOCK_SIZE];
572 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
574 while (off >= 0 && buffer[off] == ERASE_VALUE) {
577 memset(&buffer[off-3], BLOCK_SIZE, 3);
579 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
658 uint8_t buffer[BLOCK_SIZE];
659 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
661 while (off >= 0 && buffer[off] == ERASE_VALUE) {
664 memset(&buffer[off-3], BLOCK_SIZE, 3);
666 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
675 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
677 while (off >= 0 && buffer[off] == ERASE_VALUE) {
680 memset(&buffer[off-3], BLOCK_SIZE, 3);
682 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
761 uint8_t buffer[BLOCK_SIZE];
762 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
764 while (off >= 0 && buffer[off] == ERASE_VALUE) {
767 memset(&buffer[off-3], BLOCK_SIZE, 3);
769 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
778 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
780 while (off >= 0 && buffer[off] == ERASE_VALUE) {
783 memset(&buffer[off-3], BLOCK_SIZE, 3);
785 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
993 uint8_t buffer[1024];
994 lfs_file_read(&lfs, &file, buffer, 5) => 5;
995 memcmp(buffer, "hola\n", 5) => 0;
996 lfs_file_read(&lfs, &file, buffer, 8) => 8;
997 memcmp(buffer, "bonjour\n", 8) => 0;
998 lfs_file_read(&lfs, &file, buffer, 6) => 6;
999 memcmp(buffer, "ohayo\n", 6) => 0;
1018 lfs_file_read(&lfs, &file, buffer, 5) => 5;
1019 memcmp(buffer, "hola\n", 5) => 0;
1020 lfs_file_read(&lfs, &file, buffer, 8) => 8;
1021 memcmp(buffer, "bonjour\n", 8) => 0;
1022 lfs_file_read(&lfs, &file, buffer, 6) => 6;
1023 memcmp(buffer, "ohayo\n", 6) => 0;
1107 uint8_t buffer[1024];
1108 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1109 assert(strcmp((char*)buffer, "test.4") == 0);
1112 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1113 assert(strcmp((char*)buffer, "test.5") == 0);
1116 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1117 assert(strcmp((char*)buffer, "test.6") == 0);
1167 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1168 assert(strcmp((char*)buffer, "test.7") == 0);
1171 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1172 assert(strcmp((char*)buffer, "test.8") == 0);
1175 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1176 assert(strcmp((char*)buffer, "test.9") == 0);
1263 uint8_t buffer[1024];
1264 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1265 assert(strcmp((char*)buffer, "test.4") == 0);
1268 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1269 assert(strcmp((char*)buffer, "test.5") == 0);
1272 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1273 assert(strcmp((char*)buffer, "test.6") == 0);
1329 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1330 assert(strcmp((char*)buffer, "test.7") == 0);
1333 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1334 assert(strcmp((char*)buffer, "test.8") == 0);
1337 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1338 assert(strcmp((char*)buffer, "test.9") == 0);
1464 uint8_t buffer[1024];
1465 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1466 assert(strcmp((char*)buffer, "test.5") == 0);
1469 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1470 assert(strcmp((char*)buffer, "test.6") == 0);
1473 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1474 assert(strcmp((char*)buffer, "test.7") == 0);
1477 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1478 assert(strcmp((char*)buffer, "test.8") == 0);
1568 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1569 assert(strcmp((char*)buffer, "test.9") == 0);
1572 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1573 assert(strcmp((char*)buffer, "test.a") == 0);
1576 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1577 assert(strcmp((char*)buffer, "test.b") == 0);
1580 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1581 assert(strcmp((char*)buffer, "test.c") == 0);
1712 uint8_t buffer[1024];
1713 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1714 assert(strcmp((char*)buffer, "test.5") == 0);
1717 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1718 assert(strcmp((char*)buffer, "test.6") == 0);
1721 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1722 assert(strcmp((char*)buffer, "test.7") == 0);
1725 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1726 assert(strcmp((char*)buffer, "test.8") == 0);
1880 uint8_t buffer[1024];
1881 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1882 assert(strcmp((char*)buffer, "test.5") == 0);
1885 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1886 assert(strcmp((char*)buffer, "test.6") == 0);
1889 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1890 assert(strcmp((char*)buffer, "test.7") == 0);
1893 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1894 assert(strcmp((char*)buffer, "test.8") == 0);