InsertRange() public method

Inserts a range of bytes to the collection.
public InsertRange ( int index, byte bs ) : void
index int the index of start byte
bs byte an array of bytes to insert
return void
Example #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);
        }