Struct 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<P2, P3>(
&self,
pb: &mut [u8],
pcallback: P2,
punkstate: P3,
) -> Result<()>where
P2: Param<IMFAsyncCallback>,
P3: Param<IUnknown>,
pub unsafe fn EndRead<P0>(&self, presult: P0) -> Result<u32>where
P0: Param<IMFAsyncResult>,
pub unsafe fn Write(&self, pb: &[u8]) -> Result<u32>
pub unsafe fn BeginWrite<P2, P3>(
&self,
pb: &[u8],
pcallback: P2,
punkstate: P3,
) -> Result<()>where
P2: Param<IMFAsyncCallback>,
P3: Param<IUnknown>,
pub unsafe fn EndWrite<P0>(&self, presult: P0) -> Result<u32>where
P0: Param<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 CanInto<IUnknown> for IMFByteStream
impl CanInto<IUnknown> for IMFByteStream
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IMFByteStream
impl PartialEq for IMFByteStream
impl Eq for IMFByteStream
impl StructuralPartialEq for IMFByteStream
Auto Trait Implementations§
impl Freeze for IMFByteStream
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