Windows Dev Center

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


public interface class IBuffer

Members

The IBuffer interface has these types of members:

Properties

The IBuffer interface has these properties.

PropertyAccess typeDescription

Capacity

Read-onlyGets the maximum number of bytes that the buffer can hold.

Length

Read/writeGets the number of bytes currently in use in the buffer.

 

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Storage.Streams
Windows::Storage::Streams [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage.Streams
Windows::Storage::Streams [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]

See also

Quickstart: Reading and writing a file
Buffer class

 

 

Show:
© 2015 Microsoft