Class ByteIo

java.lang.Object
org.mozilla.javascript.typedarrays.ByteIo

public class ByteIo extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ByteIo

      public ByteIo()
  • Method Details

    • readInt8

      public static Byte readInt8(byte[] buf, int offset)
    • writeInt8

      public static void writeInt8(byte[] buf, int offset, int val)
    • readUint8

      public static Integer readUint8(byte[] buf, int offset)
    • writeUint8

      public static void writeUint8(byte[] buf, int offset, int val)
    • readInt16

      public static Short readInt16(byte[] buf, int offset, boolean littleEndian)
    • writeInt16

      public static void writeInt16(byte[] buf, int offset, int val, boolean littleEndian)
    • readUint16

      public static Integer readUint16(byte[] buf, int offset, boolean littleEndian)
    • writeUint16

      public static void writeUint16(byte[] buf, int offset, int val, boolean littleEndian)
    • readInt32

      public static Integer readInt32(byte[] buf, int offset, boolean littleEndian)
    • 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

      public static Object readUint32(byte[] buf, int offset, boolean littleEndian)
    • 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

      public static Float readFloat32(byte[] buf, int offset, boolean littleEndian)
    • writeFloat32

      public static void writeFloat32(byte[] buf, int offset, double val, boolean littleEndian)
    • readFloat64

      public static Double readFloat64(byte[] buf, int offset, boolean littleEndian)
    • writeFloat64

      public static void writeFloat64(byte[] buf, int offset, double val, boolean littleEndian)