共用方式為


NSData.FromBytesNoCopy 方法

定義

多載

FromBytesNoCopy(IntPtr, nuint)
FromBytesNoCopy(IntPtr, nuint, Boolean)

FromBytesNoCopy(IntPtr, nuint)

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

參數

bytes
IntPtr

nativeint

size
System.System.UIntPtr System.unativeint

傳回

屬性

適用於

FromBytesNoCopy(IntPtr, nuint, Boolean)

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

參數

bytes
IntPtr

nativeint

size
System.System.UIntPtr System.unativeint
freeWhenDone
Boolean

傳回

屬性

適用於