Lines Matching refs:buffer
14 uint8_t buffer[1024];
15 memset(buffer, 0, sizeof(buffer));
19 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
20 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6;
21 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
22 memcmp(buffer, "aaaa", 4) => 0;
23 memcmp(buffer+4, "bbbbbb", 6) => 0;
24 memcmp(buffer+10, "ccccc", 5) => 0;
27 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
28 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 0;
29 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
30 memcmp(buffer, "aaaa", 4) => 0;
31 memcmp(buffer+4, "\0\0\0\0\0\0", 6) => 0;
32 memcmp(buffer+10, "ccccc", 5) => 0;
35 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
36 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => LFS_ERR_NOATTR;
37 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
38 memcmp(buffer, "aaaa", 4) => 0;
39 memcmp(buffer+4, "\0\0\0\0\0\0", 6) => 0;
40 memcmp(buffer+10, "ccccc", 5) => 0;
43 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
44 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6;
45 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
46 memcmp(buffer, "aaaa", 4) => 0;
47 memcmp(buffer+4, "dddddd", 6) => 0;
48 memcmp(buffer+10, "ccccc", 5) => 0;
51 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
52 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 3;
53 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
54 memcmp(buffer, "aaaa", 4) => 0;
55 memcmp(buffer+4, "eee\0\0\0", 6) => 0;
56 memcmp(buffer+10, "ccccc", 5) => 0;
58 lfs_setattr(&lfs, "hello", 'A', buffer, LFS_ATTR_MAX+1) => LFS_ERR_NOSPC;
60 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
61 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 9;
62 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
67 memset(buffer, 0, sizeof(buffer));
68 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
69 lfs_getattr(&lfs, "hello", 'B', buffer+4, 9) => 9;
70 lfs_getattr(&lfs, "hello", 'C', buffer+13, 5) => 5;
71 memcmp(buffer, "aaaa", 4) => 0;
72 memcmp(buffer+4, "fffffffff", 9) => 0;
73 memcmp(buffer+13, "ccccc", 5) => 0;
76 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
77 memcmp(buffer, "hello", strlen("hello")) => 0;
95 uint8_t buffer[1024];
96 memset(buffer, 0, sizeof(buffer));
100 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
101 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 6;
102 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
103 memcmp(buffer, "aaaa", 4) => 0;
104 memcmp(buffer+4, "bbbbbb", 6) => 0;
105 memcmp(buffer+10, "ccccc", 5) => 0;
108 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
109 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 0;
110 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
111 memcmp(buffer, "aaaa", 4) => 0;
112 memcmp(buffer+4, "\0\0\0\0\0\0", 6) => 0;
113 memcmp(buffer+10, "ccccc", 5) => 0;
116 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
117 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => LFS_ERR_NOATTR;
118 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
119 memcmp(buffer, "aaaa", 4) => 0;
120 memcmp(buffer+4, "\0\0\0\0\0\0", 6) => 0;
121 memcmp(buffer+10, "ccccc", 5) => 0;
124 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
125 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 6;
126 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
127 memcmp(buffer, "aaaa", 4) => 0;
128 memcmp(buffer+4, "dddddd", 6) => 0;
129 memcmp(buffer+10, "ccccc", 5) => 0;
132 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
133 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 3;
134 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
135 memcmp(buffer, "aaaa", 4) => 0;
136 memcmp(buffer+4, "eee\0\0\0", 6) => 0;
137 memcmp(buffer+10, "ccccc", 5) => 0;
139 lfs_setattr(&lfs, "/", 'A', buffer, LFS_ATTR_MAX+1) => LFS_ERR_NOSPC;
141 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
142 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 9;
143 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
147 memset(buffer, 0, sizeof(buffer));
148 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
149 lfs_getattr(&lfs, "/", 'B', buffer+4, 9) => 9;
150 lfs_getattr(&lfs, "/", 'C', buffer+13, 5) => 5;
151 memcmp(buffer, "aaaa", 4) => 0;
152 memcmp(buffer+4, "fffffffff", 9) => 0;
153 memcmp(buffer+13, "ccccc", 5) => 0;
156 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
157 memcmp(buffer, "hello", strlen("hello")) => 0;
175 uint8_t buffer[1024];
176 memset(buffer, 0, sizeof(buffer));
178 {'A', buffer, 4},
179 {'B', buffer+4, 6},
180 {'C', buffer+10, 5},
185 memcpy(buffer, "aaaa", 4);
186 memcpy(buffer+4, "bbbbbb", 6);
187 memcpy(buffer+10, "ccccc", 5);
189 memset(buffer, 0, 15);
192 memcmp(buffer, "aaaa", 4) => 0;
193 memcmp(buffer+4, "bbbbbb", 6) => 0;
194 memcmp(buffer+10, "ccccc", 5) => 0;
199 memset(buffer, 0, 15);
203 memcmp(buffer, "aaaa", 4) => 0;
204 memcmp(buffer+4, "\0\0\0\0\0\0", 6) => 0;
205 memcmp(buffer+10, "ccccc", 5) => 0;
209 memcpy(buffer+4, "dddddd", 6);
211 memset(buffer, 0, 15);
215 memcmp(buffer, "aaaa", 4) => 0;
216 memcmp(buffer+4, "dddddd", 6) => 0;
217 memcmp(buffer+10, "ccccc", 5) => 0;
221 memcpy(buffer+4, "eee", 3);
223 memset(buffer, 0, 15);
227 memcmp(buffer, "aaaa", 4) => 0;
228 memcmp(buffer+4, "eee\0\0\0", 6) => 0;
229 memcmp(buffer+10, "ccccc", 5) => 0;
236 {'A', buffer, 4},
237 {'B', buffer+4, 9},
238 {'C', buffer+13, 5},
242 memcpy(buffer+4, "fffffffff", 9);
251 memset(buffer, 0, sizeof(buffer));
253 {'A', buffer, 4},
254 {'B', buffer+4, 9},
255 {'C', buffer+13, 5},
261 memcmp(buffer, "aaaa", 4) => 0;
262 memcmp(buffer+4, "fffffffff", 9) => 0;
263 memcmp(buffer+13, "ccccc", 5) => 0;
266 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
267 memcmp(buffer, "hello", strlen("hello")) => 0;
288 uint8_t buffer[1024];
289 memset(buffer, 0, sizeof(buffer));
299 lfs_getattr(&lfs, "hello/hello", 'B', buffer, 9) => 9;
300 lfs_getattr(&lfs, "hello/hello", 'C', buffer+9, 9) => 5;
301 lfs_getattr(&lfs, "hello/hello", 'D', buffer+18, 9) => LFS_ERR_NOATTR;
302 memcmp(buffer, "fffffffff", 9) => 0;
303 memcmp(buffer+9, "ccccc\0\0\0\0", 9) => 0;
304 memcmp(buffer+18, "\0\0\0\0\0\0\0\0\0", 9) => 0;
307 lfs_getattr(&lfs, "hello/hello", 'B', buffer, 9) => 4;
308 lfs_getattr(&lfs, "hello/hello", 'C', buffer+9, 9) => 0;
309 lfs_getattr(&lfs, "hello/hello", 'D', buffer+18, 9) => 4;
310 memcmp(buffer, "gggg\0\0\0\0\0", 9) => 0;
311 memcmp(buffer+9, "\0\0\0\0\0\0\0\0\0", 9) => 0;
312 memcmp(buffer+18, "hhhh\0\0\0\0\0", 9) => 0;