19 internal CpSatHelper(global::System.IntPtr cPtr,
bool cMemoryOwn) {
21 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
24 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
CpSatHelper obj) {
25 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
28 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
CpSatHelper obj) {
31 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
32 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
33 obj.swigCMemOwn =
false;
37 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
47 global::System.GC.SuppressFinalize(
this);
50 protected virtual void Dispose(
bool disposing) {
52 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
57 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
63 string ret = operations_research_satPINVOKE.CpSatHelper_ModelStats(
ProtoHelper.
ProtoToByteArray(model_proto, out var buffer), buffer);