(LittleEndian): added 64-bit integer readers.

This commit is contained in:
morkt
2014-07-25 00:52:24 +04:00
parent 0a1f14e051
commit 53d0267eca

View File

@@ -70,6 +70,16 @@ namespace GameRes.Utility
{ {
return (int)ToUInt32 (value, index); return (int)ToUInt32 (value, index);
} }
public static ulong ToUInt64 (byte[] value, int index)
{
return (ulong)ToUInt32 (value, index) | ((ulong)ToUInt32 (value, index+4) << 32);
}
public static long ToInt64 (byte[] value, int index)
{
return (long)ToUInt64 (value, index);
}
} }
public sealed class Crc32 public sealed class Crc32