WIP: Added packing of AR and TAR
This commit is contained in:
26
AMWD.Common/Packing/Tar/Interfaces/IArchiveDataWriter.cs
Normal file
26
AMWD.Common/Packing/Tar/Interfaces/IArchiveDataWriter.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace AMWD.Common.Packing.Tar.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface of a archive writer.
|
||||
/// </summary>
|
||||
public interface IArchiveDataWriter
|
||||
{
|
||||
/// <summary>
|
||||
/// Write <paramref name="count"/> bytes of data from <paramref name="buffer"/> to corresponding archive.
|
||||
/// </summary>
|
||||
/// <param name="buffer">The data storage.</param>
|
||||
/// <param name="count">How many bytes to be written to the corresponding archive.</param>
|
||||
int Write(byte[] buffer, int count);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the writer can write.
|
||||
/// </summary>
|
||||
bool CanWrite { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The writer delegate.
|
||||
/// </summary>
|
||||
/// <param name="writer">The writer.</param>
|
||||
public delegate void WriteDataDelegate(IArchiveDataWriter writer);
|
||||
}
|
||||
Reference in New Issue
Block a user