Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
fix: Marshal boolean as UnmanagedType.I1 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler authored Sep 27, 2021
1 parent 366a799 commit 2b1d191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Akihabara/Native/Gpu/SafeEglSurfaceHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial class SafeNativeMethods : NativeMethods
public static extern bool mp_EglSurfaceHolder__flip_y(IntPtr eglSurfaceHolder);

[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void mp_EglSurfaceHolder__SetFlipY__b(IntPtr eglSurfaceHolder, bool flipY);
public static extern void mp_EglSurfaceHolder__SetFlipY__b(IntPtr eglSurfaceHolder, [MarshalAs(UnmanagedType.I1)] bool flipY);

[Pure, DllImport(MediaPipeLibrary, ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
Expand Down
1 change: 1 addition & 0 deletions src/Akihabara/Native/SafeNativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public partial class SafeNativeMethods : NativeMethods
#region ABSL

[Pure, DllImport(MediaPipeLibrary, ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool absl_Status__ok(IntPtr status);

[Pure, DllImport(MediaPipeLibrary, ExactSpelling = true)]
Expand Down

0 comments on commit 2b1d191

Please sign in to comment.