コード例 #1
0
        ///<summary>Delete bytes from the buffer</summary>
        public void Delete(long pos1, long pos2)
        {
            lock (LockObj) {
                if (!modifyAllowed)
                {
                    return;
                }
                if (!IsResizable)
                {
                    return;
                }

                DeleteAction da = new DeleteAction(pos1, pos2, this);
                da.Do();

                // if action isn't handled as chained (ActionChaining == false)
                // handle it manually
                if (!HandleChaining(da))
                {
                    AddUndoAction(da);
                    RedoDequeDispose();
                }

                EmitChanged();
            }
        }
コード例 #2
0
ファイル: ByteBufferAction.cs プロジェクト: switsys/bless
 public override void Do()
 {
     del.Do();
     ins.Do();
 }