Example #1
0
        public override void Parse(TreeBuilder tree)
        {
            tree.ReadByte("Data Format", true);
            byte FileNameLength = tree.ReadByte();

            byte[] FileNameBytes = tree.ReadBytes("File Name", FileNameLength, true);

            ExtractFileName = System.Text.Encoding.UTF8.GetString(FileNameBytes);

            tree.ReadFormatted("Date/Time", BlockFormat.UnixTime);
            tree.RemainingBytes("Literal Data");

            ThisBlock = tree.CurrentBlock;
            ThisBlock.ProcessBlock += ExtractData;
        }