A C "long" is a C# "Int32"
This commit is contained in:
Родитель
0cdaa79cb2
Коммит
7d2f89b2b9
|
@ -36,7 +36,7 @@ namespace SkiaSharp
|
|||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate bool seek_delegate (IntPtr managedStreamPtr, IntPtr position);
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate bool move_delegate (IntPtr managedStreamPtr, long offset);
|
||||
internal delegate bool move_delegate (IntPtr managedStreamPtr, int offset);
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate IntPtr getLength_delegate (IntPtr managedStreamPtr);
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
|
@ -219,7 +219,7 @@ namespace SkiaSharp
|
|||
#if __IOS__
|
||||
[MonoPInvokeCallback(typeof(move_delegate))]
|
||||
#endif
|
||||
private static bool MoveInternal (IntPtr managedStreamPtr, long offset)
|
||||
private static bool MoveInternal (IntPtr managedStreamPtr, int offset)
|
||||
{
|
||||
var managedStream = AsManagedStream (managedStreamPtr);
|
||||
if (!managedStream.stream.CanSeek) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче