Exemplo n.º 1
0
        //static U32 XXH_readBE32( void* ptr)
        //{
        //    return XXH_CPU_LITTLE_ENDIAN ? XXH_swap32(XXH_read32(ptr)) : XXH_read32(ptr);
        //}

        public static U64 XXH_readLE64_align(void *ptr /*, XXH_endianess endian*/, XXH_alignment align)
        {
            //if (align== XXH_alignment.XXH_unaligned)
            //    return /*endian==XXH_littleEndian ?*/ XXH_read64(ptr) /*: XXH_swap64(XXH_read64(ptr))*/;
            //else
            return /*endian==XXH_littleEndian ?*/ (*(U64 *)ptr /*: XXH_swap64(*( U64*)ptr)*/);
        }
Exemplo n.º 2
0
 public static U32 XXH_readLE32_align(void *ptr /*, XXH_endianess endian*/, XXH_alignment align)
 {
     //if (align== XXH_alignment.XXH_unaligned)
     //    return /*endian==XXH_littleEndian ?*/ XXH_read32(ptr) /*: XXH_swap32(XXH_read32(ptr))*/;
     //else
     return /*endian==XXH_littleEndian ?*/ (*(U32 *)ptr /*: XXH_swap32(*( U32*)ptr)*/);
 }