#[repr(C)]pub struct HurrayFileWriterOptions {
pub data_buffer_alignment: u32,
pub sorted_index: bool,
}Expand description
Container options for a file writer.
Pass null to hurray_file_writer_new for the defaults: 4096-byte data buffer
alignment, index in write order.
Fields§
§data_buffer_alignment: u32Alignment applied to every data buffer in the file. MUST be a power of two in
[4096, 2097152]. Default: 4096, which is page-aligned on every common OS and so
lets a consumer mmap a buffer directly.
sorted_index: boolSort the footer index by tensor name instead of leaving it in write order, so a reader can binary-search it. Default: false.
Auto Trait Implementations§
impl Freeze for HurrayFileWriterOptions
impl RefUnwindSafe for HurrayFileWriterOptions
impl Send for HurrayFileWriterOptions
impl Sync for HurrayFileWriterOptions
impl Unpin for HurrayFileWriterOptions
impl UnsafeUnpin for HurrayFileWriterOptions
impl UnwindSafe for HurrayFileWriterOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more