Struct windows::Win32::Media::MediaFoundation::IFileIo
pub struct IFileIo(/* private fields */);
Implementations§
§impl IFileIo
impl IFileIo
pub unsafe fn Initialize<P0>(
&self,
eaccessmode: FILE_ACCESSMODE,
eopenmode: FILE_OPENMODE,
pwszfilename: P0
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn GetLength(&self, pqwlength: *mut u64) -> Result<()>
pub unsafe fn SetLength(&self, qwlength: u64) -> Result<()>
pub unsafe fn GetCurrentPosition(&self, pqwposition: *mut u64) -> Result<()>
pub unsafe fn SetCurrentPosition(&self, qwposition: u64) -> Result<()>
pub unsafe fn IsEndOfStream(&self, pbendofstream: *mut BOOL) -> Result<()>
pub unsafe fn Read( &self, pbt: *mut u8, ul: u32, pulread: *mut u32 ) -> Result<()>
pub unsafe fn Write( &self, pbt: *mut u8, ul: u32, pulwritten: *mut u32 ) -> Result<()>
pub unsafe fn Seek( &self, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64 ) -> Result<()>
pub unsafe fn Close(&self) -> Result<()>
Trait Implementations§
§impl Interface for IFileIo
impl Interface for IFileIo
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for IFileIo
impl StructuralPartialEq for IFileIo
Auto Trait Implementations§
impl RefUnwindSafe for IFileIo
impl !Send for IFileIo
impl !Sync for IFileIo
impl Unpin for IFileIo
impl UnwindSafe for IFileIo
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