ParseHeaderv1() public static method

public static ParseHeaderv1 ( string filePath ) : Headerv1
filePath string
return Headerv1
Esempio n. 1
0
 public static Headerv1 ParseHeaderv1(string filePath)
 {
     System.IO.FileStream fs = System.IO.File.OpenRead(filePath);
     byte[] data = new byte[fs.Length];
     fs.Read(data, 0, System.Convert.ToInt32(fs.Length));
     fs.Close();
     Headerv1 hdr = new Headerv1();
     hdr._data = data;
     Parser.ParseHeaderv1(ref hdr);
     return hdr;
 }