SKData.Create 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
Create(IntPtr, Int32, SKDataReleaseDelegate, Object) |
Returns a new SKData instance with reference to the specified data. |
Create(Stream, UInt64) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(Stream, Int64) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(Stream, Int32) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(IntPtr, Int32) |
Returns a new SKData instance with reference to the specified data. |
Create(SKStream, UInt64) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(SKStream, Int64) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(IntPtr, Int32, SKDataReleaseDelegate) |
Returns a new SKData instance with reference to the specified data. |
Create(UInt64) |
Returns a new SKData instance with uninitialized data. |
Create(String) |
Returns a new SKData instance with the data from the file. |
Create(Stream) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(Int64) | |
Create(Int32) |
Returns a new SKData instance with uninitialized data. |
Create(SKStream) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(SKStream, Int32) |
Returns a new SKData instance with a copy of the data from the stream. |
Create(IntPtr, Int32, SKDataReleaseDelegate, Object)
Returns a new SKData instance with reference to the specified data.
public static SkiaSharp.SKData Create (IntPtr address, int length, SkiaSharp.SKDataReleaseDelegate releaseProc, object context);
Parameters
- address
- IntPtr
The pointer to a buffer.
- length
- Int32
The length of the buffer.
- releaseProc
- SKDataReleaseDelegate
The delegate to invoke when the SKData instance is ready to be discarded.
- context
- Object
The user state to pass to the delegate when it is invoked.
Returns
Returns the new SKData instance with reference to the specified data.
Remarks
The caller is responsible for ensuring the data buffer lives as long as the SKData instance.
Applies to
Create(Stream, UInt64)
Create(Stream, Int64)
Create(Stream, Int32)
Create(IntPtr, Int32)
Returns a new SKData instance with reference to the specified data.
public static SkiaSharp.SKData Create (IntPtr address, int length);
Parameters
- address
- IntPtr
The pointer to a buffer.
- length
- Int32
The length of the buffer.
Returns
Returns the new SKData instance with reference to the specified data.
Remarks
The caller is responsible for ensuring the data buffer lives as long as the SKData instance.
Applies to
Create(SKStream, UInt64)
Create(SKStream, Int64)
Create(IntPtr, Int32, SKDataReleaseDelegate)
Returns a new SKData instance with reference to the specified data.
public static SkiaSharp.SKData Create (IntPtr address, int length, SkiaSharp.SKDataReleaseDelegate releaseProc);
Parameters
- address
- IntPtr
The pointer to a buffer.
- length
- Int32
The length of the buffer.
- releaseProc
- SKDataReleaseDelegate
The delegate to invoke when the SKData instance is ready to be discarded.
Returns
Returns the new SKData instance with reference to the specified data.
Remarks
The caller is responsible for ensuring the data buffer lives as long as the SKData instance.
Applies to
Create(UInt64)
Create(String)
Create(Stream)
Create(Int64)
Create(Int32)
Create(SKStream)
Create(SKStream, Int32)
SkiaSharp