DeleteBytes() public méthode

See IByteProvider.DeleteBytes for more information.
public DeleteBytes ( long index, long length ) : void
index long
length long
Résultat void
        private void btnRemoveWord_Click(object sender, EventArgs e)
        {
            long offset = Position.RoundDown(4);
            long index  = offset / 4;

            DynamicFileByteProvider d = hexBox1.ByteProvider as DynamicFileByteProvider;

            d._supportsInsDel = true;
            d.DeleteBytes(offset, 4);
            d._supportsInsDel = false;

            _relocations.RemoveAt((int)index);
            foreach (ModuleDataNode s in ((ModuleNode)_section.Root).Sections)
            {
                foreach (Relocation r in s.Relocations)
                {
                    FixRelocation(r, -1, offset);
                }
            }

            for (int i = (int)index; i < _relocations.Count; i++)
            {
                _relocations[i]._index--;
            }

            PosChanged();
        }