public RemoveBytes ( int numberOfBytes, int lengthOfValidDataToShift ) : void | ||
numberOfBytes | int | The distance to shift. Positive means shifting to the right (ie. inserting data) /// Negative means shift to the left (ie. deleteing data) |
lengthOfValidDataToShift | int | The number of bytes that will need to be shifted to perform the remove. /// This only includes the data that is valid after the shift is complete, and not the data that will be removed. |
return | void |
public void RemoveBytes(int numberOfBytes, int lengthOfValidDataToShift)
{
long pos = Position;
Copy(Position + numberOfBytes, Position, lengthOfValidDataToShift);
Position = pos;
}