Düzenle

Aracılığıyla paylaş


NSData.FromBytes(IntPtr, nuint) Method

Definition

Creates an NSData from an in-memory block by specifying its address and length.

[Foundation.Export("dataWithBytes:length:")]
public static Foundation.NSData FromBytes (IntPtr bytes, nuint size);
static member FromBytes : nativeint * nuint -> Foundation.NSData

Parameters

bytes
IntPtr

nativeint

Pointer to a block of data in memory.

size
System.System.UIntPtr System.unativeint

The size of the block that you want to wrap

Returns

Newly created NSData object wrapping the buffer.

Attributes

Applies to