pub struct DataReader(/* private fields */);
Implementations§
Source§impl DataReader
impl DataReader
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 as RuntimeType>::DefaultType], ) -> 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 Close(&self) -> Result<()>
pub fn CreateDataReader<'a, T0__: IntoParam<'a, IInputStream>>( inputstream: T0__, ) -> Result<DataReader>
pub fn FromBuffer<'a, T0__: IntoParam<'a, IBuffer>>( buffer: T0__, ) -> Result<DataReader>
Trait Implementations§
Source§impl Clone for DataReader
impl Clone for DataReader
Source§fn clone(&self) -> DataReader
fn clone(&self) -> DataReader
Returns a duplicate 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 moreSource§impl Debug for DataReader
impl Debug for DataReader
Source§impl From<&DataReader> for IClosable
impl From<&DataReader> for IClosable
Source§fn from(value: &DataReader) -> Self
fn from(value: &DataReader) -> Self
Converts to this type from the input type.
Source§impl From<&DataReader> for IDataReader
impl From<&DataReader> for IDataReader
Source§fn from(value: &DataReader) -> Self
fn from(value: &DataReader) -> Self
Converts to this type from the input type.
Source§impl From<&DataReader> for Object
impl From<&DataReader> for Object
Source§fn from(value: &DataReader) -> Self
fn from(value: &DataReader) -> Self
Converts to this type from the input type.
Source§impl From<DataReader> for IClosable
impl From<DataReader> for IClosable
Source§fn from(value: DataReader) -> Self
fn from(value: DataReader) -> Self
Converts to this type from the input type.
Source§impl From<DataReader> for IDataReader
impl From<DataReader> for IDataReader
Source§fn from(value: DataReader) -> Self
fn from(value: DataReader) -> Self
Converts to this type from the input type.
Source§impl From<DataReader> for Object
impl From<DataReader> for Object
Source§fn from(value: DataReader) -> Self
fn from(value: DataReader) -> Self
Converts to this type from the input type.
Source§impl Interface for DataReader
impl Interface for DataReader
const IID: Guid
type Vtable = IDataReader_abi
Source§impl<'a> IntoParam<'a, IClosable> for &'a DataReader
impl<'a> IntoParam<'a, IClosable> for &'a DataReader
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IClosable> for DataReader
impl<'a> IntoParam<'a, IClosable> for DataReader
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IDataReader> for &'a DataReader
impl<'a> IntoParam<'a, IDataReader> for &'a DataReader
fn into_param(self) -> Param<'a, IDataReader>
Source§impl<'a> IntoParam<'a, IDataReader> for DataReader
impl<'a> IntoParam<'a, IDataReader> for DataReader
fn into_param(self) -> Param<'a, IDataReader>
Source§impl<'a> IntoParam<'a, Object> for &'a DataReader
impl<'a> IntoParam<'a, Object> for &'a DataReader
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for DataReader
impl<'a> IntoParam<'a, Object> for DataReader
fn into_param(self) -> Param<'a, Object>
Source§impl PartialEq for DataReader
impl PartialEq for DataReader
Source§impl RuntimeName for DataReader
impl RuntimeName for DataReader
Source§impl RuntimeType for DataReader
impl RuntimeType for DataReader
const SIGNATURE: ConstBuffer
type DefaultType = Option<DataReader>
impl Eq for DataReader
impl Send for DataReader
impl StructuralPartialEq for DataReader
impl Sync for DataReader
Auto Trait Implementations§
impl Freeze for DataReader
impl RefUnwindSafe for DataReader
impl Unpin for DataReader
impl UnwindSafe for DataReader
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
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.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
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