Skip to content

Commit

Permalink
fix: missing MarshalAs
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Sep 27, 2021
1 parent c55f1b1 commit 67155d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Mediapipe {
internal static partial class SafeNativeMethods {
[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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static partial class SafeNativeMethods {
public static extern IntPtr mp_EglSurfaceHolderUniquePtr__release(IntPtr eglSurfaceHolder);

[Pure, 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

0 comments on commit 67155d5

Please sign in to comment.