(Binary.GetCString): added convenient overload.

This commit is contained in:
morkt 2016-09-13 03:04:37 +04:00
parent 05b1a3124d
commit 6c7ddb3f2a

View File

@ -101,6 +101,11 @@ namespace GameRes.Utility
return GetCString (data, index, length_limit, Encodings.cp932);
}
public static string GetCString (byte[] data, int index)
{
return GetCString (data, index, data.Length - index, Encodings.cp932);
}
public static uint RotR (uint v, int count)
{
count &= 0x1F;