Lines Matching full:read
58 // Adjust the position from where data is read. Upon success, the stream
60 // error code is returned. It is not valid to call Seek while a Read call
64 // Returns the number of bytes available to read from the current stream
68 // Call this method to read data from the current stream position. Up to
74 // must be passed to this method. In asynchronous mode, if the read could
77 // the read has completed.
79 // In the case of an asychronous read, the memory pointed to by |buf| must
81 // destroy or close the file stream while there is an asynchronous read in
82 // progress. That will cancel the read and allow the buffer to be freed.
87 int Read(char* buf, int buf_len, CompletionCallback* callback);
89 // Performs the same as Read, but ensures that exactly buf_len bytes
90 // are copied into buf. A partial read may occur, but only as a result of
92 // 0 if at end-of-file and no bytes have been read into buf yet,