Int

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.math.big
  • Platforms: .NET, .NET Standard 2.0, Island

Implements

Instance Methods


constructor

 

constructor

 

Int()

 

init()

 

Sub New()

constructor (Int)

 

constructor(value: Int)

 

Int(Int value)

 

init(_ value: Int)

 

Sub New(value As Int)

Parameters:

  • value:

Format

 

method Format(s: State; ch: rune)

 

void Format(State s, rune ch)

 

func Format(_ s: State, _ ch: rune)

 

func Format(s State, ch rune)

 

Sub Format(s As State, ch As rune)

Parameters:

  • s:
  • ch:

Scan

 

method Scan(s: ScanState; ch: rune): error

 

error Scan(ScanState s, rune ch)

 

func Scan(_ s: ScanState, _ ch: rune) -> error

 

func Scan(s ScanState, ch rune) error

 

Function Scan(s As ScanState, ch As rune) As error

Parameters:

  • s:
  • ch:

Abs

 

method Abs(x: Reference<Int>): Reference<Int>

 

func Abs(_ x: Reference<Int>) -> Reference<Int>

 

func Abs(x Reference<Int>) Reference<Int>

 

Function Abs(x As Reference<Int>) As Reference<Int>

Parameters:

  • x:

Add

 

method Add(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Add(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Add(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

And

 

method And(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func And(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function And(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

AndNot

 

method AndNot(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func AndNot(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

func AndNot(x Reference<Int>, y Reference<Int>) Reference<Int>

 

Function AndNot(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

Append

 

method Append(buf: Slice<Byte>; base: int): Slice<Byte>

 

Slice<Byte> Append(Slice<Byte> buf, int base)

 

func Append(_ buf: Slice<Byte>, _ base: int) -> Slice<Byte>

 

func Append(buf Slice<Byte>, base int) Slice<Byte>

 

Function Append(buf As Slice<Byte>, base As int) As Slice<Byte>

Parameters:

  • buf:
  • base:

Binomial

 

method Binomial(n: int64; k: int64): Reference<Int>

 

Reference<Int> Binomial(int64 n, int64 k)

 

func Binomial(_ n: int64, _ k: int64) -> Reference<Int>

 

func Binomial(n int64, k int64) Reference<Int>

 

Function Binomial(n As int64, k As int64) As Reference<Int>

Parameters:

  • n:
  • k:

Bit

 

method Bit(i: int): uint

 

uint Bit(int i)

 

func Bit(_ i: int) -> uint

 

func Bit(i int) uint

 

Function Bit(i As int) As uint

Parameters:

  • i:

BitLen

 

method BitLen: int

 

int BitLen()

 

func BitLen() -> int

 

func BitLen() int

 

Function BitLen() As int

Bits

 

method Bits: Slice<Word>

 

Slice<Word> Bits()

 

func Bits() -> Slice<Word>

 

func Bits() Slice<Word>

 

Function Bits() As Slice<Word>

Bytes

 

method Bytes: Slice<Byte>

 

Slice<Byte> Bytes()

 

func Bytes() -> Slice<Byte>

 

func Bytes() Slice<Byte>

 

Function Bytes() As Slice<Byte>

Cmp

 

method Cmp(y: Reference<Int>): int

 

int Cmp(Reference<Int> y)

 

func Cmp(_ y: Reference<Int>) -> int

 

func Cmp(y Reference<Int>) int

 

Function Cmp(y As Reference<Int>) As int

Parameters:

  • y:

CmpAbs

 

method CmpAbs(y: Reference<Int>): int

 

int CmpAbs(Reference<Int> y)

 

func CmpAbs(_ y: Reference<Int>) -> int

 

func CmpAbs(y Reference<Int>) int

 

Function CmpAbs(y As Reference<Int>) As int

Parameters:

  • y:

Div

 

method Div(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Div(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Div(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

DivMod

 

// .NET, Island
method DivMod(x: Reference<Int>; y: Reference<Int>; m: Reference<Int>): tuple of (Reference<Int>, Reference<Int>)
// .NET Standard 2.0
method DivMod(x: Reference<Int>; y: Reference<Int>; m: Reference<Int>): ValueTuple<Reference<Int>, Reference<Int>>

 

// .NET, Island
(Reference<Int>, Reference<Int>) DivMod(Reference<Int> x, Reference<Int> y, Reference<Int> m)
// .NET Standard 2.0
ValueTuple<Reference<Int>, Reference<Int>> DivMod(Reference<Int> x, Reference<Int> y, Reference<Int> m)

 

// .NET, Island
func DivMod(_ x: Reference<Int>, _ y: Reference<Int>, _ m: Reference<Int>) -> (Reference<Int>, Reference<Int>)
// .NET Standard 2.0
func DivMod(_ x: Reference<Int>, _ y: Reference<Int>, _ m: Reference<Int>) -> ValueTuple<Reference<Int>, Reference<Int>>

 

// .NET, Island
func DivMod(x Reference<Int>, y Reference<Int>, m Reference<Int>) (Reference<Int>, Reference<Int>)
// .NET Standard 2.0
func DivMod(x Reference<Int>, y Reference<Int>, m Reference<Int>) ValueTuple<Reference<Int>, Reference<Int>>

 

// .NET, Island
Function DivMod(x As Reference<Int>, y As Reference<Int>, m As Reference<Int>) As Tuple (Of Reference<Int>, Reference<Int>)
// .NET Standard 2.0
Function DivMod(x As Reference<Int>, y As Reference<Int>, m As Reference<Int>) As ValueTuple<Reference<Int>, Reference<Int>>

Parameters:

  • x:
  • y:
  • m:

Exp

 

method Exp(x: Reference<Int>; y: Reference<Int>; m: Reference<Int>): Reference<Int>

 

func Exp(_ x: Reference<Int>, _ y: Reference<Int>, _ m: Reference<Int>) -> Reference<Int>

 

Function Exp(x As Reference<Int>, y As Reference<Int>, m As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:
  • m:

GCD

Parameters:

  • x:
  • y:
  • a:
  • b:

GobDecode

 

method GobDecode(buf: Slice<Byte>): error

 

error GobDecode(Slice<Byte> buf)

 

func GobDecode(_ buf: Slice<Byte>) -> error

 

func GobDecode(buf Slice<Byte>) error

 

Function GobDecode(buf As Slice<Byte>) As error

Parameters:

  • buf:

GobEncode

 

// .NET, Island
method GobEncode: tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method GobEncode: ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) GobEncode()
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> GobEncode()

 

// .NET, Island
func GobEncode() -> (Slice<Byte>, error)
// .NET Standard 2.0
func GobEncode() -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func GobEncode() (Slice<Byte>, error)
// .NET Standard 2.0
func GobEncode() ValueTuple<Slice<Byte>, error>

 

// .NET, Island
Function GobEncode() As Tuple (Of Slice<Byte>, error)
// .NET Standard 2.0
Function GobEncode() As ValueTuple<Slice<Byte>, error>

Int64

 

method Int64: int64

 

int64 Int64()

 

func Int64() -> int64

 

func Int64() int64

 

Function Int64() As int64

IsInt64

 

method IsInt64: bool

 

bool IsInt64()

 

func IsInt64() -> bool

 

func IsInt64() bool

 

Function IsInt64() As bool

IsUint64

 

method IsUint64: bool

 

bool IsUint64()

 

func IsUint64() -> bool

 

func IsUint64() bool

 

Function IsUint64() As bool

Lsh

 

method Lsh(x: Reference<Int>; n: uint): Reference<Int>

 

func Lsh(_ x: Reference<Int>, _ n: uint) -> Reference<Int>

 

func Lsh(x Reference<Int>, n uint) Reference<Int>

 

Function Lsh(x As Reference<Int>, n As uint) As Reference<Int>

Parameters:

  • x:
  • n:

MarshalJSON

 

// .NET, Island
method MarshalJSON: tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method MarshalJSON: ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) MarshalJSON()
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> MarshalJSON()

 

// .NET, Island
func MarshalJSON() -> (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalJSON() -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func MarshalJSON() (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalJSON() ValueTuple<Slice<Byte>, error>

 

// .NET, Island
Function MarshalJSON() As Tuple (Of Slice<Byte>, error)
// .NET Standard 2.0
Function MarshalJSON() As ValueTuple<Slice<Byte>, error>

MarshalText

 

method MarshalText: tuple of (text: Slice<Byte>, err: error)

 

(Slice<Byte> text, error err) MarshalText()

 

func MarshalText() -> (text:Slice<Byte>, err:error)

 

func MarshalText() (text Slice<Byte>, err error)

 

Function MarshalText() As Tuple (Of text:=Slice<Byte>, err:=error)

Mod

 

method Mod(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Mod(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Mod(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

ModInverse

 

method ModInverse(g: Reference<Int>; n: Reference<Int>): Reference<Int>

 

Reference<Int> ModInverse(Reference<Int> g, Reference<Int> n)

 

func ModInverse(_ g: Reference<Int>, _ n: Reference<Int>) -> Reference<Int>

 

func ModInverse(g Reference<Int>, n Reference<Int>) Reference<Int>

 

Function ModInverse(g As Reference<Int>, n As Reference<Int>) As Reference<Int>

Parameters:

  • g:
  • n:

ModSqrt

 

method ModSqrt(x: Reference<Int>; p: Reference<Int>): Reference<Int>

 

func ModSqrt(_ x: Reference<Int>, _ p: Reference<Int>) -> Reference<Int>

 

func ModSqrt(x Reference<Int>, p Reference<Int>) Reference<Int>

 

Function ModSqrt(x As Reference<Int>, p As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • p:

Mul

 

method Mul(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Mul(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Mul(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

MulRange

 

method MulRange(a: int64; b: int64): Reference<Int>

 

Reference<Int> MulRange(int64 a, int64 b)

 

func MulRange(_ a: int64, _ b: int64) -> Reference<Int>

 

func MulRange(a int64, b int64) Reference<Int>

 

Function MulRange(a As int64, b As int64) As Reference<Int>

Parameters:

  • a:
  • b:

Neg

 

method Neg(x: Reference<Int>): Reference<Int>

 

func Neg(_ x: Reference<Int>) -> Reference<Int>

 

func Neg(x Reference<Int>) Reference<Int>

 

Function Neg(x As Reference<Int>) As Reference<Int>

Parameters:

  • x:

Not

 

method Not(x: Reference<Int>): Reference<Int>

 

func Not(_ x: Reference<Int>) -> Reference<Int>

 

func Not(x Reference<Int>) Reference<Int>

 

Function Not(x As Reference<Int>) As Reference<Int>

Parameters:

  • x:

Or

 

method Or(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Or(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Or(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

ProbablyPrime

 

method ProbablyPrime(n: int): bool

 

bool ProbablyPrime(int n)

 

func ProbablyPrime(_ n: int) -> bool

 

func ProbablyPrime(n int) bool

 

Function ProbablyPrime(n As int) As bool

Parameters:

  • n:

Quo

 

method Quo(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Quo(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Quo(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

QuoRem

 

// .NET, Island
method QuoRem(x: Reference<Int>; y: Reference<Int>; r: Reference<Int>): tuple of (Reference<Int>, Reference<Int>)
// .NET Standard 2.0
method QuoRem(x: Reference<Int>; y: Reference<Int>; r: Reference<Int>): ValueTuple<Reference<Int>, Reference<Int>>

 

// .NET, Island
(Reference<Int>, Reference<Int>) QuoRem(Reference<Int> x, Reference<Int> y, Reference<Int> r)
// .NET Standard 2.0
ValueTuple<Reference<Int>, Reference<Int>> QuoRem(Reference<Int> x, Reference<Int> y, Reference<Int> r)

 

// .NET, Island
func QuoRem(_ x: Reference<Int>, _ y: Reference<Int>, _ r: Reference<Int>) -> (Reference<Int>, Reference<Int>)
// .NET Standard 2.0
func QuoRem(_ x: Reference<Int>, _ y: Reference<Int>, _ r: Reference<Int>) -> ValueTuple<Reference<Int>, Reference<Int>>

 

// .NET, Island
func QuoRem(x Reference<Int>, y Reference<Int>, r Reference<Int>) (Reference<Int>, Reference<Int>)
// .NET Standard 2.0
func QuoRem(x Reference<Int>, y Reference<Int>, r Reference<Int>) ValueTuple<Reference<Int>, Reference<Int>>

 

// .NET, Island
Function QuoRem(x As Reference<Int>, y As Reference<Int>, r As Reference<Int>) As Tuple (Of Reference<Int>, Reference<Int>)
// .NET Standard 2.0
Function QuoRem(x As Reference<Int>, y As Reference<Int>, r As Reference<Int>) As ValueTuple<Reference<Int>, Reference<Int>>

Parameters:

  • x:
  • y:
  • r:

Rand

 

method Rand(rnd: Reference<Rand>; n: Reference<Int>): Reference<Int>

 

func Rand(_ rnd: Reference<Rand>, _ n: Reference<Int>) -> Reference<Int>

 

func Rand(rnd Reference<Rand>, n Reference<Int>) Reference<Int>

 

Function Rand(rnd As Reference<Rand>, n As Reference<Int>) As Reference<Int>

Parameters:

  • rnd:
  • n:

Rem

 

method Rem(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Rem(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Rem(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

Rsh

 

method Rsh(x: Reference<Int>; n: uint): Reference<Int>

 

func Rsh(_ x: Reference<Int>, _ n: uint) -> Reference<Int>

 

func Rsh(x Reference<Int>, n uint) Reference<Int>

 

Function Rsh(x As Reference<Int>, n As uint) As Reference<Int>

Parameters:

  • x:
  • n:

Set

 

method Set(x: Reference<Int>): Reference<Int>

 

func Set(_ x: Reference<Int>) -> Reference<Int>

 

func Set(x Reference<Int>) Reference<Int>

 

Function Set(x As Reference<Int>) As Reference<Int>

Parameters:

  • x:

SetBit

 

method SetBit(x: Reference<Int>; i: int; b: uint): Reference<Int>

 

Reference<Int> SetBit(Reference<Int> x, int i, uint b)

 

func SetBit(_ x: Reference<Int>, _ i: int, _ b: uint) -> Reference<Int>

 

func SetBit(x Reference<Int>, i int, b uint) Reference<Int>

 

Function SetBit(x As Reference<Int>, i As int, b As uint) As Reference<Int>

Parameters:

  • x:
  • i:
  • b:

SetBits

 

method SetBits(abs: Slice<Word>): Reference<Int>

 

Reference<Int> SetBits(Slice<Word> abs)

 

func SetBits(_ abs: Slice<Word>) -> Reference<Int>

 

func SetBits(abs Slice<Word>) Reference<Int>

 

Function SetBits(abs As Slice<Word>) As Reference<Int>

Parameters:

  • abs:

SetBytes

 

method SetBytes(buf: Slice<Byte>): Reference<Int>

 

Reference<Int> SetBytes(Slice<Byte> buf)

 

func SetBytes(_ buf: Slice<Byte>) -> Reference<Int>

 

func SetBytes(buf Slice<Byte>) Reference<Int>

 

Function SetBytes(buf As Slice<Byte>) As Reference<Int>

Parameters:

  • buf:

SetInt64

 

method SetInt64(x: int64): Reference<Int>

 

Reference<Int> SetInt64(int64 x)

 

func SetInt64(_ x: int64) -> Reference<Int>

 

func SetInt64(x int64) Reference<Int>

 

Function SetInt64(x As int64) As Reference<Int>

Parameters:

  • x:

SetString

 

// .NET, Island
method SetString(s: string; base: int): tuple of (Reference<Int>, Boolean)
// .NET Standard 2.0
method SetString(s: string; base: int): ValueTuple<Reference<Int>, Boolean>

 

// .NET, Island
(Reference<Int>, Boolean) SetString(string s, int base)
// .NET Standard 2.0
ValueTuple<Reference<Int>, Boolean> SetString(string s, int base)

 

// .NET, Island
func SetString(_ s: string, _ base: int) -> (Reference<Int>, Boolean)
// .NET Standard 2.0
func SetString(_ s: string, _ base: int) -> ValueTuple<Reference<Int>, Boolean>

 

// .NET, Island
func SetString(s string, base int) (Reference<Int>, Boolean)
// .NET Standard 2.0
func SetString(s string, base int) ValueTuple<Reference<Int>, Boolean>

 

// .NET, Island
Function SetString(s As string, base As int) As Tuple (Of Reference<Int>, Boolean)
// .NET Standard 2.0
Function SetString(s As string, base As int) As ValueTuple<Reference<Int>, Boolean>

Parameters:

  • s:
  • base:

SetUint64

 

method SetUint64(x: uint64): Reference<Int>

 

Reference<Int> SetUint64(uint64 x)

 

func SetUint64(_ x: uint64) -> Reference<Int>

 

func SetUint64(x uint64) Reference<Int>

 

Function SetUint64(x As uint64) As Reference<Int>

Parameters:

  • x:

Sign

 

method Sign: int

 

int Sign()

 

func Sign() -> int

 

func Sign() int

 

Function Sign() As int

Sqrt

 

method Sqrt(x: Reference<Int>): Reference<Int>

 

func Sqrt(_ x: Reference<Int>) -> Reference<Int>

 

func Sqrt(x Reference<Int>) Reference<Int>

 

Function Sqrt(x As Reference<Int>) As Reference<Int>

Parameters:

  • x:

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

 

Function String() As string

Sub

 

method Sub(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Sub(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Sub(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y:

Text

 

method Text(base: int): string

 

string Text(int base)

 

func Text(_ base: int) -> string

 

func Text(base int) string

 

Function Text(base As int) As string

Parameters:

  • base:

TrailingZeroBits

 

method TrailingZeroBits: uint

 

uint TrailingZeroBits()

 

func TrailingZeroBits() -> uint

 

func TrailingZeroBits() uint

 

Function TrailingZeroBits() As uint

Uint64

 

method Uint64: uint64

 

uint64 Uint64()

 

func Uint64() -> uint64

 

func Uint64() uint64

 

Function Uint64() As uint64

UnmarshalJSON

 

method UnmarshalJSON(text: Slice<Byte>): error

 

error UnmarshalJSON(Slice<Byte> text)

 

func UnmarshalJSON(_ text: Slice<Byte>) -> error

 

func UnmarshalJSON(text Slice<Byte>) error

 

Function UnmarshalJSON(text As Slice<Byte>) As error

Parameters:

  • text:

UnmarshalText

 

method UnmarshalText(text: Slice<Byte>): error

 

error UnmarshalText(Slice<Byte> text)

 

func UnmarshalText(_ text: Slice<Byte>) -> error

 

func UnmarshalText(text Slice<Byte>) error

 

Function UnmarshalText(text As Slice<Byte>) As error

Parameters:

  • text:

Xor

 

method Xor(x: Reference<Int>; y: Reference<Int>): Reference<Int>

 

func Xor(_ x: Reference<Int>, _ y: Reference<Int>) -> Reference<Int>

 

Function Xor(x As Reference<Int>, y As Reference<Int>) As Reference<Int>

Parameters:

  • x:
  • y: