IBuffer 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.

public : interface IBuffer
struct winrt::Windows::Storage::Streams::IBuffer
public interface IBuffer
Public Interface IBuffer
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


For more info, see Create, write, and read a file, which shows how to read and write bytes to a file by using a Buffer.

WriteableBitmap.PixelBuffer is an example of a property that returns an IBuffer that can't be written to directly. See that topic for a language-specific code example showing to write to the underlying pixel content in the buffer.


Capacity Capacity Capacity Capacity Capacity

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

Length Length Length Length Length

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

See also