Lines Matching refs:overlapped
80 OVERLAPPED overlapped = {}; in pread() local
81 overlapped.Offset = static_cast<DWORD>(offset); in pread()
82 overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32); in pread()
83 overlapped.hEvent = event.handle(); in pread()
84 if (!ReadFile(handle, data, static_cast<DWORD>(byte_count), &bytes_read, &overlapped)) { in pread()
90 !::GetOverlappedResult(handle, &overlapped, &bytes_read, TRUE)) { in pread()
109 OVERLAPPED overlapped = {}; in pwrite() local
110 overlapped.Offset = static_cast<DWORD>(offset); in pwrite()
111 overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32); in pwrite()
112 overlapped.hEvent = event.handle(); in pwrite()
113 if (!::WriteFile(handle, buf, count, &bytes_written, &overlapped)) { in pwrite()
119 !::GetOverlappedResult(handle, &overlapped, &bytes_written, TRUE)) { in pwrite()