public static uint smethod_1(string string_0) { if (string_0 == null) { throw new ArgumentNullException("path"); } Class99 class2 = new Class99(); byte[] buffer = new byte[0x1000]; int num = 0; using (FileStream stream = new FileStream(string_0, FileMode.OpenOrCreate)) { while ((num = stream.Read(buffer, 0, buffer.Length)) != 0) { class2.method_5(buffer, 0, num); } } return(class2.method_0()); }
public static uint smethod_0(Stream stream_0) { if (stream_0 == null) { throw new ArgumentNullException("stream"); } if (!stream_0.CanRead) { throw new ArgumentException("stream is not readable."); } stream_0.Position = 0L; Class99 class2 = new Class99(); byte[] buffer = new byte[0x1000]; int num = 0; while ((num = stream_0.Read(buffer, 0, buffer.Length)) != 0) { class2.method_5(buffer, 0, num); } stream_0.Position = 0L; return(class2.method_0()); }