18 lines
444 B
C#
18 lines
444 B
C#
namespace System.IO.Compression
|
|
{
|
|
interface IFileFormatWriter {
|
|
byte[] GetHeader();
|
|
void UpdateWithBytesRead(byte[] buffer, int offset, int bytesToCopy);
|
|
byte[] GetFooter();
|
|
}
|
|
|
|
interface IFileFormatReader {
|
|
bool ReadHeader(InputBuffer input);
|
|
bool ReadFooter(InputBuffer input);
|
|
void UpdateWithBytesRead(byte[] buffer, int offset, int bytesToCopy);
|
|
void Validate();
|
|
}
|
|
|
|
}
|
|
|