共用方式為


NSData.FromBytes(IntPtr, nuint) 方法

定義

藉由指定其位址和長度,從記憶體內部區塊建立 NSData。

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

參數

bytes
IntPtr

nativeint

記憶體中資料區塊的指標。

size
System.System.UIntPtr System.unativeint

您要包裝的區塊大小

傳回

新建立的 NSData 物件會包裝緩衝區。

屬性

適用於