Home | History | Annotate | Download | only in test

Lines Matching refs:handle

17 bool BlockingWrite(const PlatformHandle& handle,
24 if (!WriteFile(handle.handle, buffer, static_cast<DWORD>(bytes_to_write),
27 !GetOverlappedResult(handle.handle, &overlapped, &bytes_written_dword,
37 bool BlockingRead(const PlatformHandle& handle,
44 if (!ReadFile(handle.handle, buffer, static_cast<DWORD>(buffer_size),
47 !GetOverlappedResult(handle.handle, &overlapped, &bytes_read_dword,
57 bool NonBlockingRead(const PlatformHandle& handle,
64 if (!ReadFile(handle.handle, buffer, static_cast<DWORD>(buffer_size),
69 CancelIo(handle.handle);
71 if (!GetOverlappedResult(handle.handle, &overlapped, &bytes_read_dword,
85 HANDLE rv = INVALID_HANDLE_VALUE;
88 reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(fp.get()))),
107 _open_osfhandle(reinterpret_cast<intptr_t>(h.release().handle), flags),