I​Buffer I​Buffer I​Buffer Interface

Definition

Represents a referenced array of bytes used by byte stream read and write interfaces. Buffer is the class implementation of this interface.

public interface IBufferpublic interface IBufferPublic Interface IBuffer
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

For more info, see Quickstart: Reading and writing a file, which shows how to read and write bytes to a file by using a Buffer.

Properties

Capacity Capacity Capacity

Gets the maximum number of bytes that the buffer can hold.

public unsigned short Capacity { get; }public uint Capacity { get; }Public ReadOnly Property Capacity As uint
Value
uint uint uint

The maximum number of bytes that the buffer can hold.

Attributes

Length Length Length

Gets the number of bytes currently in use in the buffer.

public unsigned short Length { get; set; }public uint Length { get; set; }Public ReadWrite Property Length As uint
Value
uint uint uint

The number of bytes currently in use in the buffer which is less than or equal to the capacity of the buffer.

Attributes

See Also