Share via


WindowsRuntimeBufferExtensions.AsBufferWithRelease Method (Byte[], Int32, Int32)

Wraps an array of Byte in an IBuffer.

Namespace: Lumia.InteropServices.WindowsRuntime
Assembly: Lumia.Imaging.Managed (in Lumia.Imaging.Managed.dll) Version: 0.0.0.0

Syntax

public static IBuffer AsBufferWithRelease(
    this byte[] data,
    int index,
    int length
)
'Declaration
<ExtensionAttribute>
Public Shared Function AsBufferWithRelease ( 
    data As Byte(),
    index As Integer,
    length As Integer
) As IBuffer
public:
[ExtensionAttribute]
static IBuffer^ AsBufferWithRelease(
    array<unsigned char>^ data, 
    int index, 
    int length
)
Lumia.InteropServices.WindowsRuntime.WindowsRuntimeBufferExtensions.AsBufferWithRelease = function(data, index, length);

Parameters

  • index
    Type: System.Int32
    The starting index of a range to wrap within the array. The value is 0 by default.
  • length
    Type: System.Int32
    The length of a range to wrap within the array. The value is 0 by default, which implies the remainder of the array, or (data.Length - index).

Return Value

Type: IBuffer
An IBuffer representing the data.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Version Information

Lumia Imaging SDK

Supported in: 3.0, 2.0

See Also

WindowsRuntimeBufferExtensions Class

WindowsRuntimeBufferExtensions.WindowsRuntimeBufferExtensions Members

AsBufferWithRelease Overload

Lumia.InteropServices.WindowsRuntime Namespace