Compartir a través de


NSData.FromBytes(IntPtr, nuint) Método

Definición

Crea un NSData a partir de un bloque en memoria especificando su dirección y longitud.

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

Parámetros

bytes
IntPtr

nativeint

Puntero a un bloque de datos en memoria.

size
System.System.UIntPtr System.unativeint

Tamaño del bloque que desea encapsular

Devoluciones

Objeto NSData recién creado que ajusta el búfer.

Atributos

Se aplica a