Skip to main content

diskann_disk/search/provider/aligned_file_reader/
mod.rs

1/*
2 * Copyright (c) Microsoft Corporation.
3 * Licensed under the MIT license.
4 */
5
6pub mod traits;
7
8mod aligned_read;
9pub use aligned_read::{AlignedRead, Alignment, A1, A512};
10
11#[cfg(all(not(miri), any(target_os = "linux", target_os = "windows")))]
12mod platform;
13
14mod reader;
15#[cfg(all(not(miri), target_os = "linux"))]
16pub use reader::LinuxAlignedFileReader;
17pub use reader::StorageProviderAlignedFileReader;
18#[cfg(all(not(miri), target_os = "windows"))]
19pub use reader::WindowsAlignedFileReader;
20
21mod factory;
22pub use factory::AlignedFileReaderFactory;
23#[cfg(test)]
24pub(crate) use factory::VirtualAlignedReaderFactory;