本文整理汇总了C#中Microsoft.Scripting.Math.BigInteger.ToInt64方法的典型用法代码示例。如果您正苦于以下问题:C# BigInteger.ToInt64方法的具体用法?C# BigInteger.ToInt64怎么用?C# BigInteger.ToInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Scripting.Math.BigInteger
的用法示例。
在下文中一共展示了BigInteger.ToInt64方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: call_function
public static object call_function(CodeContext context, BigInteger address, PythonTuple args) {
return call_function(context, new IntPtr(address.ToInt64()), args);
}
示例2: ioctl
public int ioctl(BigInteger cmd, int option) {
return _socket.IOControl((IOControlCode)cmd.ToInt64(), BitConverter.GetBytes(option), null);
}
示例3: FreeLibrary
public static void FreeLibrary(BigInteger handle) {
FreeLibrary(new IntPtr(handle.ToInt64()));
}
示例4: from_address
public _Array from_address(CodeContext/*!*/ context, BigInteger ptr) {
_Array res = (_Array)CreateInstance(context);
res.SetAddress(new IntPtr(ptr.ToInt64()));
return res;
}
示例5: from_address
public _Structure from_address(CodeContext/*!*/ context, BigInteger address) {
return from_address(context, new IntPtr(address.ToInt64()));
}
示例6: from_address
public SimpleCData from_address(CodeContext/*!*/ context, BigInteger address) {
return from_address(context, new IntPtr(address.ToInt64()));
}
示例7: truncate
public BigInteger truncate(BigInteger size) {
EnsureWritable();
_writeStream.SetLength(size.ToInt64());
SeekToEnd();
return size;
}
示例8: seek
public BigInteger seek(BigInteger offset, [DefaultParameterValue(0)]int whence) {
EnsureOpen();
return BigInteger.Create(_readStream.Seek(offset.ToInt64(), (SeekOrigin)whence));
}