13public class operations_research_constraint_solver {
19 public static long Zero() {
24 public static long One() {
77 if (cPtr != global::System.IntPtr.Zero) {
79 long[] outArray =
new long[tmpVector.
Count];
80 tmpVector.
CopyTo(outArray);
87 System.IntPtr dataPointer = operations_research_constraint_solverPINVOKE.DefaultRoutingModelParameters();
90 int size = System.Runtime.InteropServices.Marshal.ReadInt32(dataPointer);
93 var data =
new System.ReadOnlySpan<
byte>((dataPointer +
sizeof(int)).ToPointer(), size);
96 }
catch (
Google.Protobuf.InvalidProtocolBufferException )
98 throw new System.Exception(
"Unable to parse Google.OrTools.ConstraintSolver.RoutingModelParameters protocol message.");
107 System.IntPtr dataPointer = operations_research_constraint_solverPINVOKE.DefaultRoutingSearchParameters();
110 int size = System.Runtime.InteropServices.Marshal.ReadInt32(dataPointer);
113 var data =
new System.ReadOnlySpan<
byte>((dataPointer +
sizeof(int)).ToPointer(), size);
116 }
catch (
Google.Protobuf.InvalidProtocolBufferException )
118 throw new System.Exception(
"Unable to parse Google.OrTools.ConstraintSolver.RoutingSearchParameters protocol message.");
127 System.IntPtr dataPointer = operations_research_constraint_solverPINVOKE.DefaultSecondaryRoutingSearchParameters();
130 int size = System.Runtime.InteropServices.Marshal.ReadInt32(dataPointer);
133 var data =
new System.ReadOnlySpan<
byte>((dataPointer +
sizeof(int)).ToPointer(), size);
136 }
catch (
Google.Protobuf.InvalidProtocolBufferException )
138 throw new System.Exception(
"Unable to parse Google.OrTools.ConstraintSolver.RoutingSearchParameters protocol message.");
147 string ret = operations_research_constraint_solverPINVOKE.FindErrorInRoutingSearchParameters(ProtoHelper.ProtoToByteArray(search_parameters, out var buffer), buffer);