Added SKStream.Peek()
This commit is contained in:
Родитель
226439c7f8
Коммит
987c909a4b
|
@ -68,6 +68,11 @@ namespace SkiaSharp
|
|||
return (int)SkiaApi.sk_stream_read (Handle, buffer, (IntPtr)size);
|
||||
}
|
||||
|
||||
public int Peek (IntPtr buffer, int size)
|
||||
{
|
||||
return (int)SkiaApi.sk_stream_peek (Handle, buffer, (IntPtr)size);
|
||||
}
|
||||
|
||||
public int Skip (int size)
|
||||
{
|
||||
return (int)SkiaApi.sk_stream_skip (Handle, (IntPtr)size);
|
||||
|
|
|
@ -1051,6 +1051,8 @@ namespace SkiaSharp
|
|||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static IntPtr sk_stream_read(sk_stream_t stream, IntPtr buffer, IntPtr size);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static IntPtr sk_stream_peek(sk_stream_t stream, IntPtr buffer, IntPtr size);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static IntPtr sk_stream_skip(sk_stream_t stream, IntPtr size);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6bc1bdd0817613624bb442929bc40a4224db7590
|
||||
Subproject commit 4c3519d05d42011fe4625fd4a7811b052d324e25
|
Загрузка…
Ссылка в новой задаче