// Token: 0x0600008F RID: 143 RVA: 0x00008AF8 File Offset: 0x00006CF8 private static void __saveRMS(string filename, sbyte[] data) { string text = Rms.GetiPhoneDocumentsPath() + "/" + filename; FileStream fileStream = new FileStream(text, FileMode.Create); fileStream.Write(ArrayCast.cast(data), 0, data.Length); fileStream.Flush(); fileStream.Close(); Main.setBackupIcloud(text); }
// Token: 0x0600003E RID: 62 RVA: 0x00007F78 File Offset: 0x00006178 public static byte[] loadData(string filename) { Image image = new Image(); TextAsset textAsset = (TextAsset)Resources.Load(filename, typeof(TextAsset)); if (textAsset == null || textAsset.bytes == null || textAsset.bytes.Length == 0) { throw new Exception("NULL POINTER EXCEPTION AT Image __createImage " + filename); } sbyte[] array = ArrayCast.cast(textAsset.bytes); Debug.LogError("CHIEU DAI MANG BYTE IMAGE CREAT = " + array.Length); return(textAsset.bytes); }
// Token: 0x06000090 RID: 144 RVA: 0x00008B40 File Offset: 0x00006D40 private static sbyte[] __loadRMS(string filename) { sbyte[] result; try { FileStream fileStream = new FileStream(Rms.GetiPhoneDocumentsPath() + "/" + filename, FileMode.Open); byte[] array = new byte[fileStream.Length]; fileStream.Read(array, 0, array.Length); fileStream.Close(); sbyte[] array2 = ArrayCast.cast(array); result = ArrayCast.cast(array); } catch (Exception ex) { result = null; } return(result); }
static void Main(string[] args) { using (var x = new ArrayCast()) { x.Run(); } using (var x = new ArrayCastList()) { x.Run(); } using (var x = new ArrayCastAsParallel()) { x.Run(); } while (Console.Read() != 'q') { ; // do nothing... } }
// Token: 0x060002B1 RID: 689 RVA: 0x000154E0 File Offset: 0x000136E0 public static Image blendImage(Image img, int layer, int idImage) { int num = TileMap.tileID - 1; Image image = img; if (num == 0 && layer == 1) { image = mGraphics.blend(img, 0.3f, 807956); } if (num == 1 && layer == 1) { image = mGraphics.blend(img, 0.35f, 739339); } if (num == 2 && layer == 1) { image = mGraphics.blend(img, 0.1f, 3977975); } if (num == 3) { if (layer == 1) { image = mGraphics.blend(img, 0.2f, 15265992); } if (layer == 3) { image = mGraphics.blend(img, 0.1f, 15265992); } } if (num == 4) { if (layer == 1) { image = mGraphics.blend(img, 0.3f, 1330178); } if (layer == 3) { image = mGraphics.blend(img, 0.1f, 1330178); } } if (num == 6) { if (layer == 1) { image = mGraphics.blend(img, 0.3f, 420382); } if (layer == 3) { image = mGraphics.blend(img, 0.15f, 420382); } } if (num == 5) { if (layer == 1) { image = mGraphics.blend(img, 0.35f, 3270903); } if (layer == 3) { image = mGraphics.blend(img, 0.15f, 3270903); } } if (num == 8) { if (layer == 1) { image = mGraphics.blend(img, 0.3f, 7094528); } if (layer == 3) { image = mGraphics.blend(img, 0.15f, 7094528); } } if (num == 9) { if (layer == 1) { image = mGraphics.blend(img, 0.3f, 12113627); } if (layer == 3) { image = mGraphics.blend(img, 0.15f, 12113627); } } if (num == 10 && layer == 1) { image = mGraphics.blend(img, 0.3f, 14938312); } if (num == 10 && layer == 1) { image = mGraphics.blend(img, 0.2f, 14938312); } if (num == 11) { if (layer == 1) { image = mGraphics.blend(img, 0.3f, 0); } if (layer == 3) { image = mGraphics.blend(img, 0.15f, 0); } } if (num > 11) { if (layer == 1 || layer == 2) { image = mGraphics.blend(img, 0.3f, 0); } if (layer == 3) { image = mGraphics.blend(img, 0.15f, 0); } } byte[] byteArray = BgItemMn.getByteArray(image); Rms.saveRMS(string.Concat(new object[] { "x", mGraphics.zoomLevel, "blend", idImage, "layer", layer }), ArrayCast.cast(byteArray)); return(image); }
// Token: 0x0600000C RID: 12 RVA: 0x000078F0 File Offset: 0x00005AF0 public DataInputStream(string filename) { TextAsset textAsset = (TextAsset)Resources.Load(filename, typeof(TextAsset)); this.r = new myReader(ArrayCast.cast(textAsset.bytes)); }