IBufferFactory.Create method

Initializes a new instance of the Buffer class with the specified capacity.

Syntax


Buffer Create(
  uint capacity
)

Parameters

capacity

Type: System.UInt32 [.NET] | uint32 [C++]

The maximum number of bytes that the buffer can hold. A value of zero returns no buffer.

Return value

Type: Buffer

The new Buffer object.

Requirements

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

See also

IBufferFactory

 

 

Build date: 6/19/2013

Show:
© 2014 Microsoft