#[repr(transparent)]pub struct IStream(/* private fields */);Implementations§
§impl IStream
impl IStream
pub unsafe fn Read( &self, pv: *mut c_void, cb: u32, pcbread: Option<*mut u32> ) -> HRESULT
pub unsafe fn Write( &self, pv: *const c_void, cb: u32, pcbwritten: Option<*mut u32> ) -> HRESULT
pub unsafe fn Seek( &self, dlibmove: i64, dworigin: STREAM_SEEK, plibnewposition: Option<*mut u64> ) -> Result<(), Error>
pub unsafe fn SetSize(&self, libnewsize: u64) -> Result<(), Error>
pub unsafe fn CopyTo<P0>( &self, pstm: P0, cb: u64, pcbread: Option<*mut u64>, pcbwritten: Option<*mut u64> ) -> Result<(), Error>where P0: IntoParam<IStream, <IStream as TypeKind>::TypeKind>,
pub unsafe fn Commit(&self, grfcommitflags: STGC) -> Result<(), Error>
pub unsafe fn Revert(&self) -> Result<(), Error>
pub unsafe fn LockRegion( &self, liboffset: u64, cb: u64, dwlocktype: LOCKTYPE ) -> Result<(), Error>
pub unsafe fn UnlockRegion( &self, liboffset: u64, cb: u64, dwlocktype: u32 ) -> Result<(), Error>
pub unsafe fn Stat(
&self,
pstatstg: *mut STATSTG,
grfstatflag: STATFLAG
) -> Result<(), Error>
pub unsafe fn Stat( &self, pstatstg: *mut STATSTG, grfstatflag: STATFLAG ) -> Result<(), Error>
Required features: "Win32_Foundation"
pub unsafe fn Clone(&self) -> Result<IStream, Error>
Trait Implementations§
§impl ComInterface for IStream
impl ComInterface for IStream
fn as_unknown(&self) -> &IUnknown
§impl Interface for IStream
impl Interface for IStream
type Vtable = IStream_Vtbl
§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.
impl Eq for IStream
Auto Trait Implementations§
impl RefUnwindSafe for IStream
impl !Send for IStream
impl !Sync for IStream
impl Unpin for IStream
impl UnwindSafe for IStream
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