pub struct VorbisHeaders { /* private fields */ }Expand description
Runtime setup headers, retaining their memory charge. The caller supplies a path; there is no default path, network fetch or embedded fallback.
Implementations§
Source§impl VorbisHeaders
impl VorbisHeaders
Sourcepub const MAX_BYTES: usize
pub const MAX_BYTES: usize
Bound the provider even when the path names a growing file or stream.
pub fn load(path: &Path, meter: &Arc<Meter>) -> Result<VorbisHeaders, Error>
Sourcepub fn from_bytes(
input: &[u8],
meter: &Arc<Meter>,
) -> Result<VorbisHeaders, Error>
pub fn from_bytes( input: &[u8], meter: &Arc<Meter>, ) -> Result<VorbisHeaders, Error>
Load an in-memory VST1 table with the same validation as Self::load.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VorbisHeaders
impl !UnwindSafe for VorbisHeaders
impl Forget for VorbisHeaders
impl Freeze for VorbisHeaders
impl Move for VorbisHeaders
impl Send for VorbisHeaders
impl Sync for VorbisHeaders
impl Unpin for VorbisHeaders
impl UnsafeUnpin for VorbisHeaders
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