Lines Matching refs:buffer
203 bool File::Read(void* buffer, size_t buffer_len, size_t offset) {
208 int ret = pread(platform_file_, buffer, buffer_len, offset);
212 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
217 int ret = pwrite(platform_file_, buffer, buffer_len, offset);
224 bool File::Read(void* buffer, size_t buffer_len, size_t offset,
230 return Read(buffer, buffer_len, offset);
236 GetFileInFlightIO()->PostRead(this, buffer, buffer_len, offset, callback);
242 bool File::Write(const void* buffer, size_t buffer_len, size_t offset,
248 return Write(buffer, buffer_len, offset);
251 return AsyncWrite(buffer, buffer_len, offset, callback, completed);
281 bool File::AsyncWrite(const void* buffer, size_t buffer_len, size_t offset,
287 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback);