Class ByteIo
java.lang.Object
org.mozilla.javascript.typedarrays.ByteIo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Float
readFloat32
(byte[] buf, int offset, boolean littleEndian) static Double
readFloat64
(byte[] buf, int offset, boolean littleEndian) static Short
readInt16
(byte[] buf, int offset, boolean littleEndian) static Integer
readInt32
(byte[] buf, int offset, boolean littleEndian) static Byte
readInt8
(byte[] buf, int offset) static Integer
readUint16
(byte[] buf, int offset, boolean littleEndian) static Object
readUint32
(byte[] buf, int offset, boolean littleEndian) static long
readUint32Primitive
(byte[] buf, int offset, boolean littleEndian) static long
readUint64Primitive
(byte[] buf, int offset, boolean littleEndian) static Integer
readUint8
(byte[] buf, int offset) static void
writeFloat32
(byte[] buf, int offset, double val, boolean littleEndian) static void
writeFloat64
(byte[] buf, int offset, double val, boolean littleEndian) static void
writeInt16
(byte[] buf, int offset, int val, boolean littleEndian) static void
writeInt32
(byte[] buf, int offset, int val, boolean littleEndian) static void
writeInt8
(byte[] buf, int offset, int val) static void
writeUint16
(byte[] buf, int offset, int val, boolean littleEndian) static void
writeUint32
(byte[] buf, int offset, long val, boolean littleEndian) static void
writeUint64
(byte[] buf, int offset, long val, boolean littleEndian) static void
writeUint8
(byte[] buf, int offset, int val)
-
Constructor Details
-
ByteIo
public ByteIo()
-
-
Method Details
-
readInt8
-
writeInt8
public static void writeInt8(byte[] buf, int offset, int val) -
readUint8
-
writeUint8
public static void writeUint8(byte[] buf, int offset, int val) -
readInt16
-
writeInt16
public static void writeInt16(byte[] buf, int offset, int val, boolean littleEndian) -
readUint16
-
writeUint16
public static void writeUint16(byte[] buf, int offset, int val, boolean littleEndian) -
readInt32
-
writeInt32
public static void writeInt32(byte[] buf, int offset, int val, boolean littleEndian) -
readUint32Primitive
public static long readUint32Primitive(byte[] buf, int offset, boolean littleEndian) -
writeUint32
public static void writeUint32(byte[] buf, int offset, long val, boolean littleEndian) -
readUint32
-
readUint64Primitive
public static long readUint64Primitive(byte[] buf, int offset, boolean littleEndian) -
writeUint64
public static void writeUint64(byte[] buf, int offset, long val, boolean littleEndian) -
readFloat32
-
writeFloat32
public static void writeFloat32(byte[] buf, int offset, double val, boolean littleEndian) -
readFloat64
-
writeFloat64
public static void writeFloat64(byte[] buf, int offset, double val, boolean littleEndian)
-