SKData.FromMallocMemory(IntPtr, UInt64) Method

Definition

Warning

This API is now obsolete.

Creates an SKData from a buffer that was previously allocated with the operating system "malloc" (or AllocHGlobal(Int32) method.

[System.Obsolete("Not supported.", true)]
public static SkiaSharp.SKData FromMallocMemory (IntPtr bytes, ulong length);

Parameters

bytes
IntPtr

Pointer to memory that has been allocated with the operating system's "malloc" or AllocHGlobal(Int32) method.

length
UInt64

The size of the buffer allocated.

Returns

An SKData instance that wraps a memory block.

Attributes

Remarks

When this SKData instance is cleared, the free method will be called on the provided buffer.

Applies to