misc/libphysfs/lzma/CPP/7zip/Compress/Branch/BranchCoder.cpp
author Wuzzy <Wuzzy2@mail.ru>
Wed, 07 Feb 2018 07:54:18 +0100
changeset 12916 6fede49bc103
parent 12213 bb5522e88ab2
permissions -rw-r--r--
Fix green color channel on themes with sd-tint (#566)

// 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;
}