Lines Matching refs:bytes

13  Description: reads up to length bytes from the file pointer referenced by handle. 
14 Reading stops when up to length bytes have been read, EOF (end of file) is
16 opening userspace stream) when 8192 bytes have been read whichever comes first.
24 bytes are read.
26 $read_size : No. of bytes to be read.
36 echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
43 echo "Error reading file, total number of bytes read = ".strlen($data_from_file)."\n";
87 echo "-- Reading beyond filesize, expeceted : 1024 bytes --\n";
94 echo "-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --\n";
117 -- Reading beyond filesize, expeceted : 1024 bytes --
120 Reading 1030 bytes from file, expecting 1024 bytes ... OK
124 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
127 Reading 10 bytes from file, expecting 0 bytes ... OK
131 -- Reading beyond filesize, expeceted : 1024 bytes --
134 Reading 1030 bytes from file, expecting 1024 bytes ... OK
138 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
141 Reading 10 bytes from file, expecting 0 bytes ... OK
145 -- Reading beyond filesize, expeceted : 1024 bytes --
148 Reading 1030 bytes from file, expecting 1024 bytes ... OK
152 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
155 Reading 10 bytes from file, expecting 0 bytes ... OK
159 -- Reading beyond filesize, expeceted : 1024 bytes --
162 Reading 1030 bytes from file, expecting 1024 bytes ... OK
166 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
169 Reading 10 bytes from file, expecting 0 bytes ... OK
173 -- Reading beyond filesize, expeceted : 1024 bytes --
176 Reading 1030 bytes from file, expecting 1024 bytes ... OK
180 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
183 Reading 10 bytes from file, expecting 0 bytes ... OK
187 -- Reading beyond filesize, expeceted : 1024 bytes --
190 Reading 1030 bytes from file, expecting 1024 bytes ... OK
194 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
197 Reading 10 bytes from file, expecting 0 bytes ... OK
201 -- Reading beyond filesize, expeceted : 1024 bytes --
204 Reading 1030 bytes from file, expecting 1024 bytes ... OK
208 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
211 Reading 10 bytes from file, expecting 0 bytes ... OK
215 -- Reading beyond filesize, expeceted : 1024 bytes --
218 Reading 1030 bytes from file, expecting 1024 bytes ... OK
222 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
225 Reading 10 bytes from file, expecting 0 bytes ... OK
229 -- Reading beyond filesize, expeceted : 1024 bytes --
232 Reading 1030 bytes from file, expecting 1024 bytes ... OK
236 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
239 Reading 10 bytes from file, expecting 0 bytes ... OK
245 -- Reading beyond filesize, expeceted : 1024 bytes --
248 Reading 1030 bytes from file, expecting 1024 bytes ... OK
252 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
255 Reading 10 bytes from file, expecting 0 bytes ... OK
259 -- Reading beyond filesize, expeceted : 1024 bytes --
262 Reading 1030 bytes from file, expecting 1024 bytes ... OK
266 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
269 Reading 10 bytes from file, expecting 0 bytes ... OK
273 -- Reading beyond filesize, expeceted : 1024 bytes --
276 Reading 1030 bytes from file, expecting 1024 bytes ... OK
280 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
283 Reading 10 bytes from file, expecting 0 bytes ... OK
287 -- Reading beyond filesize, expeceted : 1024 bytes --
290 Reading 1030 bytes from file, expecting 1024 bytes ... OK
294 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
297 Reading 10 bytes from file, expecting 0 bytes ... OK
301 -- Reading beyond filesize, expeceted : 1024 bytes --
304 Reading 1030 bytes from file, expecting 1024 bytes ... OK
308 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
311 Reading 10 bytes from file, expecting 0 bytes ... OK
315 -- Reading beyond filesize, expeceted : 1024 bytes --
318 Reading 1030 bytes from file, expecting 1024 bytes ... OK
322 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
325 Reading 10 bytes from file, expecting 0 bytes ... OK
329 -- Reading beyond filesize, expeceted : 1024 bytes --
332 Reading 1030 bytes from file, expecting 1024 bytes ... OK
336 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
339 Reading 10 bytes from file, expecting 0 bytes ... OK
343 -- Reading beyond filesize, expeceted : 1024 bytes --
346 Reading 1030 bytes from file, expecting 1024 bytes ... OK
350 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
353 Reading 10 bytes from file, expecting 0 bytes ... OK
357 -- Reading beyond filesize, expeceted : 1024 bytes --
360 Reading 1030 bytes from file, expecting 1024 bytes ... OK
364 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
367 Reading 10 bytes from file, expecting 0 bytes ... OK
373 -- Reading beyond filesize, expeceted : 1024 bytes --
376 Reading 1030 bytes from file, expecting 1024 bytes ... OK
380 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
383 Reading 10 bytes from file, expecting 0 bytes ... OK
387 -- Reading beyond filesize, expeceted : 1024 bytes --
390 Reading 1030 bytes from file, expecting 1024 bytes ... OK
394 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
397 Reading 10 bytes from file, expecting 0 bytes ... OK
401 -- Reading beyond filesize, expeceted : 1024 bytes --
404 Reading 1030 bytes from file, expecting 1024 bytes ... OK
408 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
411 Reading 10 bytes from file, expecting 0 bytes ... OK
415 -- Reading beyond filesize, expeceted : 1024 bytes --
418 Reading 1030 bytes from file, expecting 1024 bytes ... OK
422 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
425 Reading 10 bytes from file, expecting 0 bytes ... OK
429 -- Reading beyond filesize, expeceted : 1024 bytes --
432 Reading 1030 bytes from file, expecting 1024 bytes ... OK
436 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
439 Reading 10 bytes from file, expecting 0 bytes ... OK
443 -- Reading beyond filesize, expeceted : 1024 bytes --
446 Reading 1030 bytes from file, expecting 1024 bytes ... OK
450 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
453 Reading 10 bytes from file, expecting 0 bytes ... OK
457 -- Reading beyond filesize, expeceted : 1024 bytes --
460 Reading 1030 bytes from file, expecting 1024 bytes ... OK
464 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
467 Reading 10 bytes from file, expecting 0 bytes ... OK
471 -- Reading beyond filesize, expeceted : 1024 bytes --
474 Reading 1030 bytes from file, expecting 1024 bytes ... OK
478 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
481 Reading 10 bytes from file, expecting 0 bytes ... OK
485 -- Reading beyond filesize, expeceted : 1024 bytes --
488 Reading 1030 bytes from file, expecting 1024 bytes ... OK
492 -- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
495 Reading 10 bytes from file, expecting 0 bytes ... OK