Last active
December 22, 2015 12:59
-
-
Save sassembla/6476436 to your computer and use it in GitHub Desktop.
The code of UnityEditor C#. Unity 4.2.x.
Run with Mac works. Run with Windows does not works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string Decompress(string s) { | |
var bytes = Convert.FromBase64String(s); | |
using (var msi = new MemoryStream(bytes)) | |
using (var mso = new MemoryStream()) { | |
using (var gs = new GZipStream(msi, CompressionMode.Decompress)) { | |
CopyStream(gs, mso); | |
} | |
return Encoding.Unicode.GetString(mso.ToArray()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System.DllNotFoundException: MonoPosixHelper
will raise.