3
// Copyright (C) 2009 Bartek Jasicki based on LZMA SDK
5
// This file is part of Grubng
7
// Grubng is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
12
// This program is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
17
// You should have received a copy of the GNU General Public License
18
// along with this program. If not, see <http://www.gnu.org/licenses/>.
25
public interface ICoder
30
/// <param name="inStream">
33
/// <param name="outStream">
36
/// <exception cref="SevenZip.DataErrorException">
37
/// if input stream is not valid
39
void Code(System.IO.Stream inStream, System.IO.Stream outStream);
43
/// Provides the fields that represent properties idenitifiers for compressing.
46
public enum CoderPropID
49
/// Specifies size of dictionary.
51
DictionarySize = 0x400,
53
/// Specifies size of memory for PPM*.
57
/// Specifies order for PPM methods.
61
/// Specifies number of postion state bits for LZMA (0 <= x <= 4).
65
/// Specifies number of literal context bits for LZMA (0 <= x <= 8).
69
/// Specifies number of literal position bits for LZMA (0 <= x <= 4).
73
/// Specifies number of fast bytes for LZ*.
77
/// Specifies match finder. LZMA: "BT2", "BT4" or "BT4B".
81
/// Specifies number of passes.
85
/// Specifies number of algorithm.
89
/// Specifies multithread mode.
93
/// Specifies mode with end marker.
99
public interface ISetCoderProperties
101
void SetCoderProperties(CoderPropID[] propIDs, object[] properties);
104
public interface IWriteCoderProperties
106
void WriteCoderProperties(System.IO.Stream outStream);