W3cubDocs

/Haxe

Int64(__Int64)

package haxe

from __Int64, to __Int64

Available on all platforms

A cross-platform signed 64-bit integer. Int64 instances can be created from two 32-bit words using Int64.make().

Variables

@:impl read only high:Int32

@:impl read only low:Int32

Methods

@:impl inline copy ():Int64

Makes a copy of this Int64.

@:impl inline get_high ():Int32

Available on cs, java

@:impl inline get_low ():Int32

Available on cs, java

Static variables

@:impl static read only high:Int32

@:impl static read only low:Int32

Static methods

@:op(A + B) static inline add (a:Int64, b:Int64):Int64

Returns the sum of a and b.

@:op(A + B) static inline add (a:Int64, b:Int64):Int64

Returns the sum of a and b.

@:op(A & B) static inline and (a:Int64, b:Int64):Int64

Returns the bitwise AND of a and b.

@:op(A & B) static inline and (a:Int64, b:Int64):Int64

Returns the bitwise AND of a and b.

static inline compare (a:Int64, b:Int64):Int

Compares a and b in signed mode. Returns a negative value if a < b, positive if a > b, or 0 if a == b.

static inline compare (a:Int64, b:Int64):Int

Compares a and b in signed mode. Returns a negative value if a < b, positive if a > b, or 0 if a == b.

@:impl static inline copy ():Int64

Makes a copy of this Int64.

@:op(A / B) static inline div (a:Int64, b:Int64):Int64

Returns the quotient of a divided by b.

@:op(A / B) static inline div (a:Int64, b:Int64):Int64

Returns the quotient of a divided by b.

static divMod (dividend:Int64, divisor:Int64):{quotient:Int64, modulus:Int64}

Performs signed integer divison of dividend by divisor. Returns { quotient : Int64, modulus : Int64 }.

static divMod (dividend:Int64, divisor:Int64):{quotient:Int64, modulus:Int64}

Performs signed integer divison of dividend by divisor. Returns { quotient : Int64, modulus : Int64 }.

@:op(A == B) static inline eq (a:Int64, b:Int64):Bool

Returns true if a is equal to b.

@:op(A == B) static inline eq (a:Int64, b:Int64):Bool

Returns true if a is equal to b.

static fromFloat (f:Float):Int64

static fromFloat (f:Float):Int64

static inline getHigh (x:Int64):Int32

Deprecated: "Use high instead"

Returns the high 32-bit word of x.

static inline getHigh (x:Int64):Int32

Deprecated: "Use high instead"

Returns the high 32-bit word of x.

static inline getLow (x:Int64):Int32

Deprecated: "Use low instead"

Returns the low 32-bit word of x.

static inline getLow (x:Int64):Int32

Deprecated: "Use low instead"

Returns the low 32-bit word of x.

@:impl static inline get_high ():Int32

Available on cs, java

@:impl static inline get_low ():Int32

Available on cs, java

static inline is (val:Dynamic):Bool

Returns whether the value val is of type haxe.Int64

static inline is (val:Dynamic):Bool

Returns whether the value val is of type haxe.Int64

static inline isNeg (x:Int64):Bool

Returns true if x is less than zero.

static inline isNeg (x:Int64):Bool

Returns true if x is less than zero.

static inline isZero (x:Int64):Bool

Returns true if x is exactly zero.

static inline isZero (x:Int64):Bool

Returns true if x is exactly zero.

static inline make (high:Int32, low:Int32):Int64

Construct an Int64 from two 32-bit words high and low.

static inline make (high:Int32, low:Int32):Int64

Construct an Int64 from two 32-bit words high and low.

@:op(A % B) static inline mod (a:Int64, b:Int64):Int64

Returns the modulus of a divided by b.

@:op(A % B) static inline mod (a:Int64, b:Int64):Int64

Returns the modulus of a divided by b.

@:op(A * B) static mul (a:Int64, b:Int64):Int64

Returns the product of a and b.

@:op(A * B) static mul (a:Int64, b:Int64):Int64

Returns the product of a and b.

@:op(-A) static neg (x:Int64):Int64

Returns the negative of x.

@:op(-A) static neg (x:Int64):Int64

Returns the negative of x.

@:op(A != B) static inline neq (a:Int64, b:Int64):Bool

Returns true if a is not equal to b.

@:op(A != B) static inline neq (a:Int64, b:Int64):Bool

Returns true if a is not equal to b.

@:from static inline ofInt (x:Int):Int64

Returns an Int64 with the value of the Int x. x is sign-extended to fill 64 bits.

@:from static inline ofInt (x:Int):Int64

Returns an Int64 with the value of the Int x. x is sign-extended to fill 64 bits.

@:op(A | B) static inline or (a:Int64, b:Int64):Int64

Returns the bitwise OR of a and b.

@:op(A | B) static inline or (a:Int64, b:Int64):Int64

Returns the bitwise OR of a and b.

static parseString (sParam:String):Int64

static parseString (sParam:String):Int64

@:op(A << B) static inline shl (a:Int64, b:Int):Int64

Returns a left-shifted by b bits.

@:op(A << B) static inline shl (a:Int64, b:Int):Int64

Returns a left-shifted by b bits.

@:op(A >> B) static inline shr (a:Int64, b:Int):Int64

Returns a right-shifted by b bits in signed mode. a is sign-extended.

@:op(A >> B) static inline shr (a:Int64, b:Int):Int64

Returns a right-shifted by b bits in signed mode. a is sign-extended.

@:op(A - B) static inline sub (a:Int64, b:Int64):Int64

Returns a minus b.

@:op(A - B) static inline sub (a:Int64, b:Int64):Int64

Returns a minus b.

static inline toInt (x:Int64):Int

Returns an Int with the value of the Int64 x. Throws an exception if x cannot be represented in 32 bits.

static inline toInt (x:Int64):Int

Returns an Int with the value of the Int64 x. Throws an exception if x cannot be represented in 32 bits.

static inline toStr (x:Int64):String

Returns a signed decimal String representation of x.

static inline toStr (x:Int64):String

Returns a signed decimal String representation of x.

static inline ucompare (a:Int64, b:Int64):Int

Compares a and b in unsigned mode. Returns a negative value if a < b, positive if a > b, or 0 if a == b.

static inline ucompare (a:Int64, b:Int64):Int

Compares a and b in unsigned mode. Returns a negative value if a < b, positive if a > b, or 0 if a == b.

@:op(A >>> B) static inline ushr (a:Int64, b:Int):Int64

Returns a right-shifted by b bits in unsigned mode. a is padded with zeroes.

@:op(A >>> B) static inline ushr (a:Int64, b:Int):Int64

Returns a right-shifted by b bits in unsigned mode. a is padded with zeroes.

@:op(A ^ B) static inline xor (a:Int64, b:Int64):Int64

Returns the bitwise XOR of a and b.

@:op(A ^ B) static inline xor (a:Int64, b:Int64):Int64

Returns the bitwise XOR of a and b.

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/Int64.html