Inheritance: ITagElementGuess
Ejemplo n.º 1
0
 public void Visit(uint offset, TagBlockGuess guess)
 {
     var name = string.Format("Tag Block {0}", _nextTagBlock);
     _nextTagBlock++;
     var elementLayout = new TagLayout(name, guess.ElementLayout.Size, new Tag(0));
     var finalizer = new LayoutGuessFinalizer(elementLayout, _nextTagBlock);
     finalizer.ProcessLayout(guess.ElementLayout);
     var align = guess.Align;
     if ((guess.ElementLayout.Size & (guess.Align - 1)) != 0)
         align = 0;
     _nextTagBlock = finalizer._nextTagBlock;
     _result.Add(new TagBlockTagLayoutField(MakeName(offset), elementLayout) { DataAlign = align });
 }
Ejemplo n.º 2
0
        public void Visit(uint offset, TagBlockGuess guess)
        {
            var name = string.Format("Tag Block {0}", _nextTagBlock);

            _nextTagBlock++;
            var elementLayout = new TagLayout(name, guess.ElementLayout.Size, new Tag(0));
            var finalizer     = new LayoutGuessFinalizer(elementLayout, _nextTagBlock);

            finalizer.ProcessLayout(guess.ElementLayout);
            var align = guess.Align;

            if ((guess.ElementLayout.Size & (guess.Align - 1)) != 0)
            {
                align = 0;
            }
            _nextTagBlock = finalizer._nextTagBlock;
            _result.Add(new TagBlockTagLayoutField(MakeName(offset), elementLayout)
            {
                DataAlign = align
            });
        }