// Setting ComVisible to false makes the types in this assembly not
visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project
is exposed to COM [assembly: Guid("f02f4e74-5baa-48c5-b978-c7959a8b8273")]
// Version information for an assembly consists of the following
four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("[Link]")] [assembly: AssemblyFileVersion("[Link]")]
using System; using [Link]; using [Link]; using [Link];
public static byte[] RemoveEncryptHeader(MemoryStream ms)
{ byte[] result = null; if (ms != null) { BinaryReader binaryReader = new BinaryReader(ms); byte b = [Link](); if (b == 2) { string text = [Link](); if (text == ENCRYPT_HEADER) { result = [Link](Convert.ToInt32([Link] - [Link])); } } } return result; }
public static BinaryReader RemoveEncryptHeaderStream<T>(T
s) where T : Stream { if (s != null) { BinaryReader binaryReader = new BinaryReader(s); byte b = [Link](); if (b == 2) { string text = [Link](); if (text == ENCRYPT_HEADER) { return binaryReader; } } [Link](); } return null; } } }