Struct windows::Win32::Media::MediaFoundation::IMFByteStream
pub struct IMFByteStream(/* private fields */);
Implementations§
§impl IMFByteStream
impl IMFByteStream
pub unsafe fn GetCapabilities(&self) -> Result<u32>
pub unsafe fn GetLength(&self) -> Result<u64>
pub unsafe fn SetLength(&self, qwlength: u64) -> Result<()>
pub unsafe fn GetCurrentPosition(&self) -> Result<u64>
pub unsafe fn SetCurrentPosition(&self, qwposition: u64) -> Result<()>
pub unsafe fn IsEndOfStream(&self) -> Result<BOOL>
pub unsafe fn Read(&self, pb: &mut [u8], pcbread: *mut u32) -> Result<()>
pub unsafe fn BeginRead<P0, P1>(
&self,
pb: &mut [u8],
pcallback: P0,
punkstate: P1
) -> Result<()>where
P0: IntoParam<IMFAsyncCallback>,
P1: IntoParam<IUnknown>,
pub unsafe fn EndRead<P0>(&self, presult: P0) -> Result<u32>where
P0: IntoParam<IMFAsyncResult>,
pub unsafe fn Write(&self, pb: &[u8]) -> Result<u32>
pub unsafe fn BeginWrite<P0, P1>(
&self,
pb: &[u8],
pcallback: P0,
punkstate: P1
) -> Result<()>where
P0: IntoParam<IMFAsyncCallback>,
P1: IntoParam<IUnknown>,
pub unsafe fn EndWrite<P0>(&self, presult: P0) -> Result<u32>where
P0: IntoParam<IMFAsyncResult>,
pub unsafe fn Seek( &self, seekorigin: MFBYTESTREAM_SEEK_ORIGIN, llseekoffset: i64, dwseekflags: u32 ) -> Result<u64>
pub unsafe fn Flush(&self) -> Result<()>
pub unsafe fn Close(&self) -> Result<()>
Trait Implementations§
§impl Clone for IMFByteStream
impl Clone for IMFByteStream
§fn clone(&self) -> IMFByteStream
fn clone(&self) -> IMFByteStream
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IMFByteStream
impl Debug for IMFByteStream
§impl From<&IMFByteStream> for &IUnknown
impl From<&IMFByteStream> for &IUnknown
§fn from(value: &IMFByteStream) -> Self
fn from(value: &IMFByteStream) -> Self
Converts to this type from the input type.
§impl From<IMFByteStream> for IUnknown
impl From<IMFByteStream> for IUnknown
§fn from(value: IMFByteStream) -> Self
fn from(value: IMFByteStream) -> Self
Converts to this type from the input type.
§impl Interface for IMFByteStream
impl Interface for IMFByteStream
§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 more§impl PartialEq for IMFByteStream
impl PartialEq for IMFByteStream
§fn eq(&self, other: &IMFByteStream) -> bool
fn eq(&self, other: &IMFByteStream) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMFByteStream
impl StructuralPartialEq for IMFByteStream
Auto Trait Implementations§
impl RefUnwindSafe for IMFByteStream
impl !Send for IMFByteStream
impl !Sync for IMFByteStream
impl Unpin for IMFByteStream
impl UnwindSafe for IMFByteStream
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