pub struct IStream(/* private fields */);
Implementations§
Source§impl IStream
impl IStream
pub unsafe fn Read( &self, pv: *mut c_void, cb: u32, pcbread: *mut u32, ) -> Result<()>
pub unsafe fn Write(&self, pv: *const c_void, cb: u32) -> Result<u32>
pub unsafe fn Seek(&self, dlibmove: i64, dworigin: STREAM_SEEK) -> Result<u64>
pub unsafe fn SetSize(&self, libnewsize: u64) -> Result<()>
pub unsafe fn CopyTo<'a>( &self, pstm: impl IntoParam<'a, IStream>, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64, ) -> Result<()>
pub unsafe fn Commit(&self, grfcommitflags: u32) -> Result<()>
pub unsafe fn Revert(&self) -> Result<()>
pub unsafe fn LockRegion( &self, liboffset: u64, cb: u64, dwlocktype: u32, ) -> Result<()>
pub unsafe fn UnlockRegion( &self, liboffset: u64, cb: u64, dwlocktype: u32, ) -> Result<()>
pub unsafe fn Stat( &self, pstatstg: *mut STATSTG, grfstatflag: u32, ) -> Result<()>
pub unsafe fn Clone(&self) -> Result<IStream>
Trait Implementations§
Source§impl From<&IStream> for ISequentialStream
impl From<&IStream> for ISequentialStream
Source§impl From<IStream> for ISequentialStream
impl From<IStream> for ISequentialStream
Source§impl Interface for IStream
impl Interface for IStream
const IID: Guid
type Vtable = IStream_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
impl Eq for IStream
impl StructuralPartialEq for IStream
Auto Trait Implementations§
impl Freeze for IStream
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> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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