summaryrefslogtreecommitdiffstats
path: root/other-licenses/7zstub/src/7zip/Compress/Branch/BranchCoder.cpp
blob: 68e938bde9458c3ad0cbf30d26085da7ef61c753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
}