public VMSChallengeResult(byte[] htmlpage) { byte[] decr = VMSFile.GetDataFromHTML(htmlpage); DataType = (DataIDs)BitConverter.ToUInt32(decr, 0x04); UserData = new PDATA(decr, 0x08); ResultData = new EventResultDataChild(decr, 0x44); }
static void GetPdata(string filepath) { byte[] file = File.ReadAllBytes(filepath); byte[] data = VMSFile.GetDataFromHTML(file); PDATA pd = new PDATA(data, 8); File.WriteAllBytes(Path.ChangeExtension(filepath, ".pd"), pd.GetBytes()); Application.Exit(); }
public VMSChallengeResult(byte[] rawdata, int startIndex) { DataType = (DataIDs)BitConverter.ToUInt32(rawdata, 0x04); UserData = new PDATA(rawdata, 0x08); ResultData = new EventResultDataChild(rawdata, 0x44); }