Struct makepad_widgets::shader::std::windows::Storage::Streams::DataWriter
#[repr(transparent)]pub struct DataWriter(/* private fields */);Implementations§
§impl DataWriter
impl DataWriter
pub fn new() -> Result<DataWriter, Error>
pub fn UnstoredBufferLength(&self) -> Result<u32, Error>
pub fn UnicodeEncoding(&self) -> Result<UnicodeEncoding, Error>
pub fn SetUnicodeEncoding(&self, value: UnicodeEncoding) -> Result<(), Error>
pub fn ByteOrder(&self) -> Result<ByteOrder, Error>
pub fn SetByteOrder(&self, value: ByteOrder) -> Result<(), Error>
pub fn WriteByte(&self, value: u8) -> Result<(), Error>
pub fn WriteBytes(&self, value: &[u8]) -> Result<(), Error>
pub fn WriteBuffer<P0>(&self, buffer: P0) -> Result<(), Error>where P0: TryIntoParam<IBuffer>,
pub fn WriteBufferRange<P0>( &self, buffer: P0, start: u32, count: u32 ) -> Result<(), Error>where P0: TryIntoParam<IBuffer>,
pub fn WriteBoolean(&self, value: bool) -> Result<(), Error>
pub fn WriteGuid(&self, value: GUID) -> Result<(), Error>
pub fn WriteInt16(&self, value: i16) -> Result<(), Error>
pub fn WriteInt32(&self, value: i32) -> Result<(), Error>
pub fn WriteInt64(&self, value: i64) -> Result<(), Error>
pub fn WriteUInt16(&self, value: u16) -> Result<(), Error>
pub fn WriteUInt32(&self, value: u32) -> Result<(), Error>
pub fn WriteUInt64(&self, value: u64) -> Result<(), Error>
pub fn WriteSingle(&self, value: f32) -> Result<(), Error>
pub fn WriteDouble(&self, value: f64) -> Result<(), Error>
pub fn WriteDateTime(&self, value: DateTime) -> Result<(), Error>
pub fn WriteDateTime(&self, value: DateTime) -> Result<(), Error>
Required features: "Foundation"
pub fn WriteTimeSpan(&self, value: TimeSpan) -> Result<(), Error>
pub fn WriteTimeSpan(&self, value: TimeSpan) -> Result<(), Error>
Required features: "Foundation"
pub fn WriteString(&self, value: &HSTRING) -> Result<u32, Error>
pub fn MeasureString(&self, value: &HSTRING) -> Result<u32, Error>
pub fn StoreAsync(&self) -> Result<DataWriterStoreOperation, Error>
pub fn StoreAsync(&self) -> Result<DataWriterStoreOperation, Error>
Required features: "Foundation"
pub fn FlushAsync(&self) -> Result<IAsyncOperation<bool>, Error>
pub fn FlushAsync(&self) -> Result<IAsyncOperation<bool>, Error>
Required features: "Foundation"
pub fn DetachBuffer(&self) -> Result<IBuffer, Error>
pub fn DetachStream(&self) -> Result<IOutputStream, Error>
pub fn CreateDataWriter<P0>(outputstream: P0) -> Result<DataWriter, Error>where P0: TryIntoParam<IOutputStream>,
Trait Implementations§
§impl Clone for DataWriter
impl Clone for DataWriter
§fn clone(&self) -> DataWriter
fn clone(&self) -> DataWriter
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 ComInterface for DataWriter
impl ComInterface for DataWriter
§const IID: GUID = <IDataWriter as ::windows_core::ComInterface>::IID
const IID: GUID = <IDataWriter as ::windows_core::ComInterface>::IID
A unique identifier representing this interface.
fn as_unknown(&self) -> &IUnknown
§impl Debug for DataWriter
impl Debug for DataWriter
§impl Interface for DataWriter
impl Interface for DataWriter
type Vtable = IDataWriter_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 PartialEq<DataWriter> for DataWriter
impl PartialEq<DataWriter> for DataWriter
§fn eq(&self, other: &DataWriter) -> bool
fn eq(&self, other: &DataWriter) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DataWriter
impl Send for DataWriter
impl Sync for DataWriter
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