/// <summary>
 /// Writes an end of data mark at the current position
 /// </summary>
 public void WriteEndOfDataMark()
 {
     CheckError(TapeDriveFunctions.EraseTape(tapeDrive.Handle, 0, false));
 }
 /// <summary>
 /// Erases the tape from the current position to the end of partition.
 /// </summary>
 public void Erase()
 {
     CheckError(TapeDriveFunctions.EraseTape(tapeDrive.Handle, 1, false));
 }