Struct birli::CxxFlagMask
source · #[repr(C)]pub struct CxxFlagMask { /* private fields */ }
Expand description
CXX Wrapper for aoflagger::FlagMask
, a two-dimensional mask of bool flags.
Please see the aoflagger documentation for more details.
Implementations§
source§impl CxxFlagMask
impl CxxFlagMask
sourcepub fn Width(&self) -> usize
pub fn Width(&self) -> usize
Get the width (number of timesteps) of the CxxFlagMask
source§impl CxxFlagMask
impl CxxFlagMask
sourcepub fn Height(&self) -> usize
pub fn Height(&self) -> usize
Get the height (number of coarse × fine frequency channels) of the CxxFlagMask
source§impl CxxFlagMask
impl CxxFlagMask
sourcepub fn HorizontalStride(&self) -> usize
pub fn HorizontalStride(&self) -> usize
Get the total number of bools in one row of the CxxFlagMask
Row might have been padded to allow for SSE instructions and other optimizations. Therefore, one should add the horizontal stride to a data pointer to get the float in the next row (channel).
source§impl CxxFlagMask
impl CxxFlagMask
sourcepub fn Buffer(&self) -> &[bool]
pub fn Buffer(&self) -> &[bool]
(Immutably) access the raw bool buffer of the CxxFlagMask
source§impl CxxFlagMask
impl CxxFlagMask
sourcepub fn BufferMut(self: Pin<&mut CxxFlagMask>) -> &mut [bool]
pub fn BufferMut(self: Pin<&mut CxxFlagMask>) -> &mut [bool]
(Mutably) access the raw bool buffer of the CxxFlagMask
Trait Implementations§
source§impl ExternType for CxxFlagMask
impl ExternType for CxxFlagMask
impl Send for CxxFlagMask
impl Sync for CxxFlagMask
impl UniquePtrTarget for CxxFlagMask
Auto Trait Implementations§
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