21 lines
551 B
C#
21 lines
551 B
C#
// Copyright (c) 2021 homuler
|
|
//
|
|
// Use of this source code is governed by an MIT-style
|
|
// license that can be found in the LICENSE file or at
|
|
// https://opensource.org/licenses/MIT.
|
|
using System;
|
|
|
|
namespace Mediapipe
|
|
{
|
|
public abstract class UniquePtrHandle : MpResourceHandle
|
|
{
|
|
protected UniquePtrHandle(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }
|
|
|
|
/// <returns>The owning pointer</returns>
|
|
public abstract IntPtr Get();
|
|
|
|
/// <summary>Release the owning pointer</summary>
|
|
public abstract IntPtr Release();
|
|
}
|
|
}
|