mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 04:29:15 +08:00
(LittleEndian): added 64-bit integer readers.
This commit is contained in:
parent
0a1f14e051
commit
53d0267eca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user