SKData.CreateCopy Method

Definition

Overloads

CreateCopy(IntPtr, UInt64)

Returns a new SKData instance with a copy of the provided byte buffer.

CreateCopy(IntPtr, Int64)
CreateCopy(IntPtr, Int32)
CreateCopy(ReadOnlySpan<Byte>)

Returns a new SKData instance with a copy of the provided byte span.

CreateCopy(Byte[])

Returns a new SKData instance with a copy of the provided byte array.

CreateCopy(Byte[], UInt64)

Returns a new SKData instance with a copy of the provided byte array.

CreateCopy(IntPtr, UInt64)

Returns a new SKData instance with a copy of the provided byte buffer.

public static SkiaSharp.SKData CreateCopy (IntPtr bytes, ulong length);

Parameters

bytes
IntPtr

The pointer to a buffer.

length
UInt64

The length of the buffer.

Returns

Returns the new SKData instance with a copy of the data.

Applies to

CreateCopy(IntPtr, Int64)

public static SkiaSharp.SKData CreateCopy (IntPtr bytes, long length);

Parameters

bytes
IntPtr
length
Int64

Returns

Applies to

CreateCopy(IntPtr, Int32)

public static SkiaSharp.SKData CreateCopy (IntPtr bytes, int length);

Parameters

bytes
IntPtr
length
Int32

Returns

Applies to

CreateCopy(ReadOnlySpan<Byte>)

Returns a new SKData instance with a copy of the provided byte span.

public static SkiaSharp.SKData CreateCopy (ReadOnlySpan<byte> bytes);

Parameters

bytes
ReadOnlySpan<Byte>

The span of bytes that will be copied.

Returns

Returns the new SKData instance with a copy of the data.

Applies to

CreateCopy(Byte[])

Returns a new SKData instance with a copy of the provided byte array.

public static SkiaSharp.SKData CreateCopy (byte[] bytes);

Parameters

bytes
Byte[]

The array of bytes that will be copied.

Returns

Returns the new SKData instance with a copy of the data.

Applies to

CreateCopy(Byte[], UInt64)

Returns a new SKData instance with a copy of the provided byte array.

public static SkiaSharp.SKData CreateCopy (byte[] bytes, ulong length);

Parameters

bytes
Byte[]

The array of bytes that will be copied.

length
UInt64

The size of the buffer to create.

Returns

Returns the new SKData instance with a copy of the data.

Applies to