SKData.CreateCopy 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.
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)
CreateCopy(IntPtr, Int32)
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[])
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
SkiaSharp