Add helper method to set internal image structures to expect being written a sequential block addressable tape.

This commit is contained in:
2019-05-01 00:04:37 +01:00
parent 1c52c36db1
commit b887ae23a0
2 changed files with 9 additions and 0 deletions

View File

@@ -56,5 +56,12 @@ namespace DiscImageChef.CommonTypes.Interfaces
/// <param name="partition">Tape partition descriptor</param>
/// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
bool AddPartition(TapePartition partition);
/// <summary>
/// Tells the image plugin to set the internal structures to expect a tape (e.g. unknown block count and size).
/// Must be called before <see cref="IWritableImage.Create"/>
/// </summary>
/// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
bool SetTape();
}
}

View File

@@ -45,5 +45,7 @@ namespace DiscImageChef.DiscImages
public bool AddFile(TapeFile file) => throw new NotImplementedException();
public bool AddPartition(TapePartition partition) => throw new NotImplementedException();
public bool SetTape() => throw new NotImplementedException();
}
}