Class IntReader


  • final class IntReader
    extends java.lang.Object
    Byte-to-int conversion magic.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] byteBuffer  
      private int[] intBuffer  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntReader()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void convert​(IntReader ir, int intLen)
      Translates bytes to ints.
      (package private) static void init​(IntReader ir, byte[] byteBuffer, int[] intBuffer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • byteBuffer

        private byte[] byteBuffer
      • intBuffer

        private int[] intBuffer
    • Constructor Detail

      • IntReader

        IntReader()
    • Method Detail

      • init

        static void init​(IntReader ir,
                         byte[] byteBuffer,
                         int[] intBuffer)
      • convert

        static void convert​(IntReader ir,
                            int intLen)
        Translates bytes to ints. NB: intLen == 4 * byteSize! NB: intLen should be less or equal to intBuffer length.