Lines Matching refs:buffer
123 bool File::Read(void* buffer, size_t buffer_len, size_t offset) {
135 if (!ReadFile(sync_platform_file_, buffer, size, &actual, NULL))
140 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
152 if (!WriteFile(sync_platform_file_, buffer, size, &actual, NULL))
160 bool File::Read(void* buffer, size_t buffer_len, size_t offset,
166 return Read(buffer, buffer_len, offset);
176 if (!ReadFile(platform_file_, buffer, size, &actual, data->overlapped())) {
192 bool File::Write(const void* buffer, size_t buffer_len, size_t offset,
198 return Write(buffer, buffer_len, offset);
201 return AsyncWrite(buffer, buffer_len, offset, callback, completed);
204 bool File::AsyncWrite(const void* buffer, size_t buffer_len, size_t offset,
216 if (!WriteFile(platform_file_, buffer, size, &actual, data->overlapped())) {