// Token: 0x06000233 RID: 563 RVA: 0x000126E0 File Offset: 0x000108E0 public static string ReadString_v1(Stream s) { string result = ""; byte[] array = new byte[4]; s.Read(array, 0, 4); int num = BitConverter.ToInt32(array, 0); bool flag = num > 0; if (flag) { array = new byte[num]; s.Read(array, 0, num); result = BytesStringProc.BufToString_SJIS(array); } return(result); }
public static string ReadString_v1(Stream s) { string result = ""; byte[] array = new byte[4]; s.Read(array, 0, 4); int num = BitConverter.ToInt32(array, 0); if (num > 0) { array = new byte[num]; s.Read(array, 0, num); try { return(BytesStringProc.BufToString_SJIS(array)); } catch (Exception) { return(""); } } return(result); }