This commit is contained in:
Matthew Leibowitz 2017-12-14 07:30:27 +02:00
Родитель 226439c7f8
Коммит 987c909a4b
3 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -68,6 +68,11 @@ namespace SkiaSharp
return (int)SkiaApi.sk_stream_read (Handle, buffer, (IntPtr)size); 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) public int Skip (int size)
{ {
return (int)SkiaApi.sk_stream_skip (Handle, (IntPtr)size); return (int)SkiaApi.sk_stream_skip (Handle, (IntPtr)size);

Просмотреть файл

@ -1051,6 +1051,8 @@ namespace SkiaSharp
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static IntPtr sk_stream_read(sk_stream_t stream, IntPtr buffer, IntPtr size); public extern static IntPtr sk_stream_read(sk_stream_t stream, IntPtr buffer, IntPtr size);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] [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); public extern static IntPtr sk_stream_skip(sk_stream_t stream, IntPtr size);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)] [return: MarshalAs(UnmanagedType.I1)]

2
externals/skia поставляемый

@ -1 +1 @@
Subproject commit 6bc1bdd0817613624bb442929bc40a4224db7590 Subproject commit 4c3519d05d42011fe4625fd4a7811b052d324e25