pub struct IMFByteStream(/* private fields */);
Available on crate feature
mf
only.Expand description
IIMFByteStream
COM interface.
Automatically calls
Release
when the object goes out of scope.
Usually created with
MFCreateMFByteStreamOnStream
function.
§Examples
use winsafe::{self as w, prelude::*};
let raw_data: Vec<u8>; // initialized somewhere
let stream = w::SHCreateMemStream(&raw_data)?;
let byte_stream = w::MFCreateMFByteStreamOnStream(&stream)?;
Trait Implementations§
Source§impl Clone for IMFByteStream
impl Clone for IMFByteStream
Source§impl Drop for IMFByteStream
impl Drop for IMFByteStream
Source§impl mf_IMFByteStream for IMFByteStream
impl mf_IMFByteStream for IMFByteStream
Source§fn BeginRead(
&self,
buffer: &mut [u8],
callback: &IMFAsyncCallback,
state: Option<&impl ole_IUnknown>,
) -> HrResult<()>
fn BeginRead( &self, buffer: &mut [u8], callback: &IMFAsyncCallback, state: Option<&impl ole_IUnknown>, ) -> HrResult<()>
IMFByteStream::BeginRead
method.Source§fn BeginWrite(
&self,
buffer: &[u8],
callback: &IMFAsyncCallback,
state: Option<&impl ole_IUnknown>,
) -> HrResult<()>
fn BeginWrite( &self, buffer: &[u8], callback: &IMFAsyncCallback, state: Option<&impl ole_IUnknown>, ) -> HrResult<()>
IMFByteStream::BeginWrite
method.Source§fn EndRead(&self, result: &impl mf_IMFAsyncResult) -> HrResult<u32>
fn EndRead(&self, result: &impl mf_IMFAsyncResult) -> HrResult<u32>
IMFByteStream::EndRead
method.Source§fn EndWrite(&self, result: &impl mf_IMFAsyncResult) -> HrResult<u32>
fn EndWrite(&self, result: &impl mf_IMFAsyncResult) -> HrResult<u32>
IMFByteStream::EndWrite
method.Source§fn GetCapabilities(&self) -> HrResult<MFBYTESTREAM>
fn GetCapabilities(&self) -> HrResult<MFBYTESTREAM>
IMFByteStream::GetCapabilities
method.Source§fn GetCurrentPosition(&self) -> HrResult<u64>
fn GetCurrentPosition(&self) -> HrResult<u64>
Source§fn IsEndOfStream(&self) -> HrResult<bool>
fn IsEndOfStream(&self) -> HrResult<bool>
IMFByteStream::IsEndOfStream
method.Source§fn Seek(
&self,
origin: MFBYTESTREAM_SEEK_ORIGIN,
offset: i64,
flags: Option<MFBYTESTREAM_SEEK_FLAG>,
) -> HrResult<u64>
fn Seek( &self, origin: MFBYTESTREAM_SEEK_ORIGIN, offset: i64, flags: Option<MFBYTESTREAM_SEEK_FLAG>, ) -> HrResult<u64>
IMFByteStream::Seek
method.Source§impl ole_IUnknown for IMFByteStream
impl ole_IUnknown for IMFByteStream
Source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
Source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
Source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
Source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
Source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.impl Send for IMFByteStream
Auto Trait Implementations§
impl Freeze for IMFByteStream
impl RefUnwindSafe 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