Struct windows::Storage::Streams::DataReader
pub struct DataReader(/* private fields */);
Implementations§
§impl DataReader
impl DataReader
pub fn Close(&self) -> Result<()>
pub fn UnconsumedBufferLength(&self) -> Result<u32>
pub fn UnicodeEncoding(&self) -> Result<UnicodeEncoding>
pub fn SetUnicodeEncoding(&self, value: UnicodeEncoding) -> Result<()>
pub fn ByteOrder(&self) -> Result<ByteOrder>
pub fn SetByteOrder(&self, value: ByteOrder) -> Result<()>
pub fn InputStreamOptions(&self) -> Result<InputStreamOptions>
pub fn SetInputStreamOptions(&self, value: InputStreamOptions) -> Result<()>
pub fn ReadByte(&self) -> Result<u8>
pub fn ReadBytes(&self, value: &mut [u8]) -> Result<()>
pub fn ReadBuffer(&self, length: u32) -> Result<IBuffer>
pub fn ReadBoolean(&self) -> Result<bool>
pub fn ReadGuid(&self) -> Result<GUID>
pub fn ReadInt16(&self) -> Result<i16>
pub fn ReadInt32(&self) -> Result<i32>
pub fn ReadInt64(&self) -> Result<i64>
pub fn ReadUInt16(&self) -> Result<u16>
pub fn ReadUInt32(&self) -> Result<u32>
pub fn ReadUInt64(&self) -> Result<u64>
pub fn ReadSingle(&self) -> Result<f32>
pub fn ReadDouble(&self) -> Result<f64>
pub fn ReadString(&self, codeunitcount: u32) -> Result<HSTRING>
pub fn ReadDateTime(&self) -> Result<DateTime>
pub fn ReadTimeSpan(&self) -> Result<TimeSpan>
pub fn LoadAsync(&self, count: u32) -> Result<DataReaderLoadOperation>
pub fn DetachBuffer(&self) -> Result<IBuffer>
pub fn DetachStream(&self) -> Result<IInputStream>
pub fn CreateDataReader<P0>(inputstream: P0) -> Result<DataReader>where
P0: IntoParam<IInputStream>,
pub fn FromBuffer<P0>(buffer: P0) -> Result<DataReader>where
P0: IntoParam<IBuffer>,
Trait Implementations§
§impl Clone for DataReader
impl Clone for DataReader
§fn clone(&self) -> DataReader
fn clone(&self) -> DataReader
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 DataReader
impl Debug for DataReader
§impl From<&DataReader> for &IInspectable
impl From<&DataReader> for &IInspectable
§fn from(value: &DataReader) -> Self
fn from(value: &DataReader) -> Self
Converts to this type from the input type.
§impl From<&DataReader> for &IUnknown
impl From<&DataReader> for &IUnknown
§fn from(value: &DataReader) -> Self
fn from(value: &DataReader) -> Self
Converts to this type from the input type.
§impl From<DataReader> for IInspectable
impl From<DataReader> for IInspectable
§fn from(value: DataReader) -> Self
fn from(value: DataReader) -> Self
Converts to this type from the input type.
§impl From<DataReader> for IUnknown
impl From<DataReader> for IUnknown
§fn from(value: DataReader) -> Self
fn from(value: DataReader) -> Self
Converts to this type from the input type.
§impl Interface for DataReader
impl Interface for DataReader
§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.
§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§impl PartialEq for DataReader
impl PartialEq for DataReader
§fn eq(&self, other: &DataReader) -> bool
fn eq(&self, other: &DataReader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DataReader
impl Send for DataReader
impl StructuralPartialEq for DataReader
impl Sync for DataReader
Auto Trait Implementations§
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