PyLong_FromString() private method

private PyLong_FromString ( string value, IntPtr end, int radix ) : IntPtr
value string
end IntPtr
radix int
return IntPtr
Example #1
0
        private static IntPtr FromString(string value)
        {
            IntPtr val = Runtime.PyLong_FromString(value, IntPtr.Zero, 0);

            PythonException.ThrowIfIsNull(val);
            return(val);
        }
Example #2
0
 /// <summary>
 /// PyLong Constructor
 /// </summary>
 /// <remarks>
 /// Creates a new PyLong from a string value.
 /// </remarks>
 public PyLong(string value)
 {
     obj = Runtime.PyLong_FromString(value, IntPtr.Zero, 0);
     if (obj == IntPtr.Zero)
     {
         throw new PythonException();
     }
 }
Example #3
0
 /// <summary>
 /// PyLong Constructor
 /// </summary>
 /// <remarks>
 /// Creates a new PyLong from a string value.
 /// </remarks>
 public PyLong(string value)
 {
     obj = Runtime.PyLong_FromString(value, IntPtr.Zero, 0);
     PythonException.ThrowIfIsNull(obj);
 }
Example #4
0
 /// <summary>
 /// PyLong Constructor
 /// </summary>
 /// <remarks>
 /// Creates a new PyLong from a string value.
 /// </remarks>
 public PyLong(string value)
 {
     obj = Runtime.PyLong_FromString(value, IntPtr.Zero, 0);
     Runtime.CheckExceptionOccurred();
 }