Created
August 31, 2015 12:46
-
-
Save isawrub/7ca1d29e95f769f437c1 to your computer and use it in GitHub Desktop.
Revisions
-
isawrub created this gist
Aug 31, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ Check if current data stream is Gzip encoded. 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ public static bool IsGZip(byte[] arr) { return arr.Length >= 2 && arr[0] == 31 && arr[1] == 139; }