public static GClass104.GClass105 smethod_1(byte[] byte_2) { GClass104.GClass105 gclass105 = new GClass104.GClass105(); gclass105.uint_0 = (uint)byte_2.Length; gclass105.method_2(byte_2); return(gclass105); }
public static GClass104.GClass105 smethod_2(Stream stream_0) { if (GClass104.smethod_1(stream_0) != GClass104.GEnum7.const_3) { throw new Exception("No IMD5 Header found!"); } GClass104.GClass105 gclass105 = new GClass104.GClass105(); gclass105.method_3(stream_0); return(gclass105); }
public static byte[] smethod_0(byte[] byte_2) { GClass104.GClass105 gclass105 = GClass104.GClass105.smethod_1(byte_2); MemoryStream memoryStream1 = new MemoryStream(); MemoryStream memoryStream2 = memoryStream1; gclass105.method_4((Stream)memoryStream2); memoryStream1.Write(byte_2, 0, byte_2.Length); byte[] array = memoryStream1.ToArray(); memoryStream1.Dispose(); return(array); }