示例#1
0
 private ByteBlock AddBlock(string Label, string Description, long PositionFromCurrent, byte[] Data)
 {
     if (AddChildLevel)
     {
         CurrentBlock = CurrentBlock.AddChildBlock(Label, Description, _fs.AbsPosition + PositionFromCurrent, Data);
     }
     else
     {
         CurrentBlock = CurrentBlock.AddBlock(Label, Description, _fs.AbsPosition + PositionFromCurrent, Data);
     }
     AddChildLevel = false;
     return(CurrentBlock);
 }
示例#2
0
 public void AddCalculated(string Label, string Description = "", ByteBlockType Type = ByteBlockType.Normal)
 {
     CurrentBlock = CurrentBlock.AddBlock(Label, Description, -1, new byte[] { }, Type);
 }
示例#3
0
 public void AddError(string Label, string Description = "")
 {
     CurrentBlock = CurrentBlock.AddBlock(Label, Description, -1, new byte[] { }, ByteBlockType.CalculatedError);
 }
示例#4
0
 public void AddCalculated(string Label, string Description, byte[] Data)
 {
     CurrentBlock = CurrentBlock.AddBlock(Label, Description, -1, Data, ByteBlockType.Calculated);
 }