Lines Matching refs:buf_len
61 int ReadFile(base::PlatformFile file, char* buf, int buf_len) { in ReadFile() argument
66 ssize_t res = HANDLE_EINTR(read(file, buf, static_cast<size_t>(buf_len))); in ReadFile()
74 int buf_len, in ReadFileTask() argument
76 callback->Run(ReadFile(file, buf, buf_len)); in ReadFileTask()
82 int WriteFile(base::PlatformFile file, const char* buf, int buf_len) { in WriteFile() argument
84 ssize_t res = HANDLE_EINTR(write(file, buf, buf_len)); in WriteFile()
92 int buf_len, in WriteFileTask() argument
94 callback->Run(WriteFile(file, buf, buf_len)); in WriteFileTask()
140 base::PlatformFile file, char* buf, int buf_len,
143 base::PlatformFile file, const char* buf, int buf_len,
210 base::PlatformFile file, char* buf, int buf_len, in InitiateAsyncRead() argument
218 file, buf, buf_len, in InitiateAsyncRead()
224 base::PlatformFile file, const char* buf, int buf_len, in InitiateAsyncWrite() argument
232 file, buf, buf_len, in InitiateAsyncWrite()
366 char* buf, int buf_len, CompletionCallback* callback) { in Read() argument
371 DCHECK(buf_len > 0); in Read()
378 async_context_->InitiateAsyncRead(file_, buf, buf_len, callback); in Read()
381 return ReadFile(file_, buf, buf_len); in Read()
385 int FileStream::ReadUntilComplete(char *buf, int buf_len) { in ReadUntilComplete() argument
386 int to_read = buf_len; in ReadUntilComplete()
401 } while (bytes_total < buf_len); in ReadUntilComplete()
407 const char* buf, int buf_len, CompletionCallback* callback) { in Write() argument
409 DCHECK_GT(buf_len, 0); in Write()
418 async_context_->InitiateAsyncWrite(file_, buf, buf_len, callback); in Write()
421 return WriteFile(file_, buf, buf_len); in Write()