summaryrefslogtreecommitdiffstats
path: root/CPP/7zip/Compress/BranchCoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/BranchCoder.cpp')
-rwxr-xr-xCPP/7zip/Compress/BranchCoder.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/CPP/7zip/Compress/BranchCoder.cpp b/CPP/7zip/Compress/BranchCoder.cpp
new file mode 100755
index 0000000..6cacc66
--- /dev/null
+++ b/CPP/7zip/Compress/BranchCoder.cpp
@@ -0,0 +1,19 @@
+// BranchCoder.cpp
+
+#include "StdAfx.h"
+
+#include "BranchCoder.h"
+
+STDMETHODIMP CBranchConverter::Init()
+{
+ _bufferPos = 0;
+ SubInit();
+ return S_OK;
+}
+
+STDMETHODIMP_(UInt32) CBranchConverter::Filter(Byte *data, UInt32 size)
+{
+ UInt32 processedSize = SubFilter(data, size);
+ _bufferPos += processedSize;
+ return processedSize;
+}