Share via


NSData.FromBytesNoCopy Method

Definition

Overloads

FromBytesNoCopy(IntPtr, UIntPtr)

[Foundation.Export("dataWithBytesNoCopy:length:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSData FromBytesNoCopy(IntPtr bytes, UIntPtr size);
[<Foundation.Export("dataWithBytesNoCopy:length:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromBytesNoCopy : nativeint * unativeint -> Foundation.NSData

Parameters

bytes
IntPtr

nativeint

size
UIntPtr

unativeint

Returns

Attributes

Applies to

FromBytesNoCopy(IntPtr, UIntPtr, Boolean)

[Foundation.Export("dataWithBytesNoCopy:length:freeWhenDone:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSData FromBytesNoCopy(IntPtr bytes, UIntPtr size, bool freeWhenDone);
[<Foundation.Export("dataWithBytesNoCopy:length:freeWhenDone:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromBytesNoCopy : nativeint * unativeint * bool -> Foundation.NSData

Parameters

bytes
IntPtr

nativeint

size
UIntPtr

unativeint

freeWhenDone
Boolean

Returns

Attributes

Applies to