示例#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 Seek(long FromCurrentPosition)
        //{
        //    _fs.Seek(FromCurrentPosition, SeekOrigin.Current);
        //}

        public ByteBlock AddChild(ByteBlock ChildBlock)
        {
            return(CurrentBlock.AddChildBlock(ChildBlock));
        }