27 lines
805 B
C#
27 lines
805 B
C#
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);
|
|
}
|