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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應