// Token: 0x06000231 RID: 561 RVA: 0x00012604 File Offset: 0x00010804 public static string ReadString(Stream s, PmxElementFormat f) { bool flag = f == null; if (flag) { f = new PmxElementFormat(2.1f); } string result = ""; bool flag2 = f.Ver <= 1f; if (flag2) { result = PmxStreamHelper.ReadString_v1(s); } else { bool flag3 = f.Ver <= 2.1f; if (flag3) { bool flag4 = f.StringEnc == PmxElementFormat.StringEncType.UTF8; if (flag4) { result = PmxStreamHelper.ReadString_v2(s, Encoding.UTF8); } else { result = PmxStreamHelper.ReadString_v2(s, Encoding.Unicode); } } } return(result); }
// Token: 0x0600022F RID: 559 RVA: 0x00012534 File Offset: 0x00010734 public static string ReadString(Stream s, int f) { string result = ""; if (f != 0) { if (f == 1) { result = PmxStreamHelper.ReadString_v2(s, Encoding.UTF8); } } else { result = PmxStreamHelper.ReadString_v2(s, Encoding.Unicode); } return(result); }