Trait winsafe::prelude::ole_ISequentialStream

source ·
pub trait ole_ISequentialStream: ole_IUnknown {
    // Provided methods
    fn Read(&self, buffer: &mut [u8]) -> HrResult<u32> { ... }
    fn Write(&self, data: &[u8]) -> HrResult<u32> { ... }
}
Available on crate features kernel and ole only.
Expand description

This trait is enabled with the ole feature, and provides methods for ISequentialStream.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn Read(&self, buffer: &mut [u8]) -> HrResult<u32>

ISequentialStream::Read method.

Returns the number of bytes written; if this value is lower than the requested size, it means the end of stream was reached.

source

fn Write(&self, data: &[u8]) -> HrResult<u32>

ISequentialStream::Write method.

Returns the number of bytes written.

Object Safety§

This trait is not object safe.

Implementors§