17 lines
448 B
Haxe
17 lines
448 B
Haxe
package js.lib;
|
|
|
|
typedef BigIntConstructor = {
|
|
@:selfCall
|
|
function call(?value:Dynamic):BigInt;
|
|
final prototype : BigInt;
|
|
/**
|
|
Interprets the low bits of a BigInt as a 2's-complement signed integer.
|
|
All higher bits are discarded.
|
|
**/
|
|
function asIntN(bits:Float, int:BigInt):BigInt;
|
|
/**
|
|
Interprets the low bits of a BigInt as an unsigned integer.
|
|
All higher bits are discarded.
|
|
**/
|
|
function asUintN(bits:Float, int:BigInt):BigInt;
|
|
}; |