Пример #1
0
            /// <summary>
            /// Inserts byte into the byte collection.
            /// </summary>
            /// <param name="index">the start index of the bytes in the byte collection</param>
            /// <param name="bs">the byte array to insert</param>
            public void InsertBytes(long index, byte[] bs)
            {
                bytes.InsertRange((int)index, bs);

                OnLengthChanged(EventArgs.Empty);
                OnChanged(EventArgs.Empty);
            }
Пример #2
0
 private void Replace(Int32 startIndex, ByteCollection byteCollection)
 {
     this.m_FormIFFILFWSEditor.HasChanges = true;
     byteCollection.RemoveRange(startIndex, this.GetFindBytes().Length);
     if ((this.GetReplaceBytes() != null) && (this.GetReplaceBytes().Length > 0))
     {
         byteCollection.InsertRange(startIndex, this.GetReplaceBytes());
     }
 }
Пример #3
0
 private void Replace(Int32 startIndex, ByteCollection byteCollection)
 {
     this.m_FormIFFILFWSEditor.HasChanges = true;
       byteCollection.RemoveRange(startIndex, this.GetFindBytes().Length);
       if ((this.GetReplaceBytes() != null) && (this.GetReplaceBytes().Length > 0)) {
     byteCollection.InsertRange(startIndex, this.GetReplaceBytes());
       }
 }