MonoMac.Foundation.NSData.FromBytes Method
Creates an NSData from an in-memory block by specifying its address and length.

Syntax

[MonoMac.Foundation.Export("dataWithBytes:length:")]
public static NSData FromBytes (IntPtr bytes, uint size)

Parameters

bytes
Pointer to a block of data in memory.
size
The size of the block that you want to wrap

Returns

Newly created NSData object wrapping the buffer.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0