Skip to main content

diskann_platform/win/
mod.rs

1/*
2 * Copyright (c) Microsoft Corporation.
3 * Licensed under the MIT license.
4 */
5#![cfg_attr(
6    not(test),
7    warn(clippy::panic, clippy::unwrap_used, clippy::expect_used)
8)]
9
10pub use file_handle::{AccessMode, FileHandle, ShareMode};
11pub use file_io::{get_queued_completion_status, read_file_to_slice};
12pub use io_completion_port::IOCompletionPort;
13pub use perf::{
14    get_number_of_processors, get_peak_workingset_size, get_process_cycle_time, get_process_time,
15    get_system_time,
16};
17pub use thread_safe_handle::ThreadSafeHandle;
18
19mod file_handle;
20mod file_io;
21mod io_completion_port;
22mod perf;
23pub mod ssd_io_context;
24mod thread_safe_handle;
25
26#[allow(non_camel_case_types)]
27pub type ULONG_PTR = usize;
28pub type DWORD = u32;
29pub type OVERLAPPED = windows_sys::Win32::System::IO::OVERLAPPED;