mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-07-08 01:31:41 +08:00
(LittleEndian): added 64-bit integer readers.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user