java.lang.Object
org.htmlunit.corejs.javascript.typedarrays.Conversions
Numeric conversions from section 7 of the ECMAScript 6 standard.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intbyteBitsToUint(int bits) static shortfloat16ToShortBits(double val) static longintBitsToUint(int bits) static BigIntegerlongBitsToBigUint(long base) static floatshortBitsToFloat16(short sb) static intshortBitsToUint(short bits) static shortstatic intstatic intstatic shortstatic intstatic inttoUint8(int arg) static intstatic inttoUint8Clamp(Object arg)
-
Constructor Details
-
Conversions
public Conversions()
-
-
Method Details
-
toInt8
-
toUint8
-
toUint8
public static int toUint8(int arg) -
toUint8Clamp
-
toInt16
-
toUint16
-
toInt32
-
toUint32
-
byteBitsToUint
public static int byteBitsToUint(int bits) -
shortBitsToUint
public static int shortBitsToUint(short bits) -
intBitsToUint
public static long intBitsToUint(int bits) -
shortBitsToFloat16
public static float shortBitsToFloat16(short sb) -
float16ToShortBits
public static short float16ToShortBits(double val) -
longBitsToBigUint
-