NSData.FromBytes(IntPtr, nuint) 方法

定义

通过指定 NSData 的地址和长度,从内存中块创建 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 对象。

属性

适用于