IBuffer IBuffer IBuffer IBuffer Interface

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

Syntax

Declaration

public interface IBufferpublic interface IBufferPublic Interface IBuffer

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 summary

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

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

Properties

  • Capacity
    Capacity
    Capacity
    Capacity

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

    public uint Capacity { get; }public uint Capacity { get; }Public ReadOnly Property Capacity As uint

    Property Value

    • uint
      uint
      uint
      uint

      The maximum number of bytes that the buffer can hold.

  • Length
    Length
    Length
    Length

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

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

    Property Value

    • uint
      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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Storage.Streams.dll