Exemplo n.º 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);
            }
Exemplo n.º 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());
     }
 }
Exemplo n.º 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());
       }
 }