mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-07 06:08:47 +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);
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user