NSData.FromBytes(IntPtr, nuint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an NSData from an in-memory block by specifying its address and length.
[Foundation.Export("dataWithBytes:length:")]
public static Foundation.NSData FromBytes (IntPtr bytes, nuint size);
static member FromBytes : nativeint * nuint -> Foundation.NSData
Parameters
- bytes
-
IntPtr
nativeint
Pointer to a block of data in memory.
- size
- System.System.UIntPtr System.unativeint
The size of the block that you want to wrap
Returns
Newly created NSData object wrapping the buffer.
- Attributes