// ICoder.h
using System;
namespace SevenZip
{
///
/// The exception that is thrown when an error in input stream occurs during decoding.
///
class DataErrorException : ApplicationException
{
public DataErrorException(): base("Data Error") { }
}
///
/// The exception that is thrown when the value of an argument is outside the allowable range.
///
class InvalidParamException : ApplicationException
{
public InvalidParamException(): base("Invalid Parameter") { }
}
public interface ICodeProgress
{
///
/// Callback progress.
///
///
/// input size. -1 if unknown.
///
///
/// output size. -1 if unknown.
///
void SetProgress(Int64 inSize, Int64 outSize);
};
public interface ICoder
{
///
/// Codes streams.
///
///
/// input Stream.
///
///
/// output Stream.
///
///
/// input Size. -1 if unknown.
///
///
/// output Size. -1 if unknown.
///
///
/// callback progress reference.
///
///
/// if input stream is not valid
///
void Code(System.IO.Stream inStream, System.IO.Stream outStream,
Int64 inSize, Int64 outSize, ICodeProgress progress);
};
public interface ISetDecoderProperties
{
void SetDecoderProperties(byte[] properties);
}
}