code: public static final long getLong6(byte[] data, int offset)
     {
        long result = 0;
        int i = offset;
        for (int shiftBy = 0; shiftBy < 48; shiftBy += 8)
        {
           result |= ((long) (data[i] & 0xff)) << shiftBy;
           ++i;
        }
        return result;
     }
docs: This method reads a six byte long from the input array.
  
  @param data the input array
  @param offset offset of integer data in the array
  @return integer value