IDataWriter Interface

Definition

Provides write access to an output stream.

public interface class IDataWriter
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1689817701, 54081, 18722, 179, 138, 221, 74, 248, 128, 140, 78)]
struct IDataWriter
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1689817701, 54081, 18722, 179, 138, 221, 74, 248, 128, 140, 78)]
public interface IDataWriter
Public Interface IDataWriter
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

ByteOrder

Gets or sets the byte order of the data in the output stream.

UnicodeEncoding

Gets or sets the Unicode character encoding for the output stream.

UnstoredBufferLength

Gets the size of the buffer that has not been used.

Methods

DetachBuffer()

Detaches a buffer that was previously attached to the writer.

DetachStream()

Detaches a stream that was previously attached to the writer.

FlushAsync()

Flushes data asynchronously.

MeasureString(String)

Gets the size of a string.

StoreAsync()

Commits data in the buffer to a backing store.

WriteBoolean(Boolean)

Writes a Boolean value to the output stream.

WriteBuffer(IBuffer)

Writes a number of bytes from a buffer to the output stream.

WriteBuffer(IBuffer, UInt32, UInt32)

Writes a range of bytes from a buffer to the output stream.

WriteByte(Byte)

Writes a byte value to the output stream.

WriteBytes(Byte[])

Writes an array of byte values to the output stream.

WriteDateTime(DateTime)

Writes a date and time value to the output stream.

WriteDouble(Double)

Writes a floating-point value to the output stream.

WriteGuid(Guid)

Writes a GUID value to the output stream.

WriteInt16(Int16)

Writes a 16-bit integer value to the output stream.

WriteInt32(Int32)

Writes a 32-bit integer value to the output stream.

WriteInt64(Int64)

Writes a 64-bit integer value to the output stream.

WriteSingle(Single)

Write a floating-point value to the output stream.

WriteString(String)

Writes a string value to the output stream.

WriteTimeSpan(TimeSpan)

Writes a time interval value to the output stream.

WriteUInt16(UInt16)

Writes a 16-bit unsigned integer value to the output stream.

WriteUInt32(UInt32)

Writes a 32-bit unsigned integer value to the output stream.

WriteUInt64(UInt64)

Writes a 64-bit unsigned integer value to the output stream.

Applies to