internal static long GetLong(byte[] arr)
        {
            long       res = 0;
            JIBitArray jb  = new JIBitArray(arr);

            res = 0;
            if (jb.Get(0) == true) //Es negativo hay que hacer complemento a 2
            {
                jb  = jb.Not();
                res = jb.GetLong()[0];
                res = res + 1;
                res = -1 * res;
            }
            else
            {
                res = jb.GetLong()[0];
            }
            return(res);
        }
        internal static short GetShort(byte[] arr)
        {
            short      res = 0;
            JIBitArray jb  = new JIBitArray(arr);

            res = 0;
            if (jb.Get(0) == true) //Es negativo hay que hacer complemento a 2
            {
                jb  = jb.Not();
                res = jb.GetShorts()[0];
                res = (short)(res + 1);
                res = (short)(-1 * res);
            }
            else
            {
                res = jb.GetShorts()[0];
            }
            return(res);
        }