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); }
public void AddCalculated(string Label, string Description = "", ByteBlockType Type = ByteBlockType.Normal) { CurrentBlock = CurrentBlock.AddBlock(Label, Description, -1, new byte[] { }, Type); }
public void AddError(string Label, string Description = "") { CurrentBlock = CurrentBlock.AddBlock(Label, Description, -1, new byte[] { }, ByteBlockType.CalculatedError); }
public void AddCalculated(string Label, string Description, byte[] Data) { CurrentBlock = CurrentBlock.AddBlock(Label, Description, -1, Data, ByteBlockType.Calculated); }