20 public static long Zero() {
25 public static long One() {
78 if (cPtr != global::System.IntPtr.Zero) {
80 long[] outArray =
new long[tmpVector.
Count];
81 tmpVector.
CopyTo(outArray);
88 System.IntPtr dataPointer = operations_research_constraint_solverPINVOKE.DefaultRoutingModelParameters();
91 int size = System.Runtime.InteropServices.Marshal.ReadInt32(dataPointer);
94 var data =
new System.ReadOnlySpan<
byte>((dataPointer +
sizeof(int)).ToPointer(), size);
97 }
catch (
Google.Protobuf.InvalidProtocolBufferException )
99 throw new System.Exception(
"Unable to parse Google.OrTools.ConstraintSolver.RoutingModelParameters protocol message.");
108 System.IntPtr dataPointer = operations_research_constraint_solverPINVOKE.DefaultRoutingSearchParameters();
111 int size = System.Runtime.InteropServices.Marshal.ReadInt32(dataPointer);
114 var data =
new System.ReadOnlySpan<
byte>((dataPointer +
sizeof(int)).ToPointer(), size);
117 }
catch (
Google.Protobuf.InvalidProtocolBufferException )
119 throw new System.Exception(
"Unable to parse Google.OrTools.ConstraintSolver.RoutingSearchParameters protocol message.");
128 System.IntPtr dataPointer = operations_research_constraint_solverPINVOKE.DefaultSecondaryRoutingSearchParameters();
131 int size = System.Runtime.InteropServices.Marshal.ReadInt32(dataPointer);
134 var data =
new System.ReadOnlySpan<
byte>((dataPointer +
sizeof(int)).ToPointer(), size);
137 }
catch (
Google.Protobuf.InvalidProtocolBufferException )
139 throw new System.Exception(
"Unable to parse Google.OrTools.ConstraintSolver.RoutingSearchParameters protocol message.");
148 string ret = operations_research_constraint_solverPINVOKE.FindErrorInRoutingSearchParameters(ProtoHelper.ProtoToByteArray(search_parameters, out var buffer), buffer);