Class PrimitiveArrayUtils

    • Constructor Detail

      • PrimitiveArrayUtils

        public PrimitiveArrayUtils()
    • Method Detail

      • initUnsafeInstance

        public static boolean initUnsafeInstance()
        If sun.misc.Unsafe is available, this will init the static instance with a fast implementation.
        Returns:
        true if an unsafe implementation is available - future calls to getInstance() will return it.
      • getIntLE

        public abstract int getIntLE​(byte[] bytes,
                                     int index)
      • getIntBE

        public abstract int getIntBE​(byte[] bytes,
                                     int index)
      • getLongLE

        public abstract long getLongLE​(byte[] bytes,
                                       int index)
      • getLongBE

        public abstract long getLongBE​(byte[] bytes,
                                       int index)
      • getIntLE

        public abstract int getIntLE​(char[] chars,
                                     int index)