misc/libphysfs/lzma/CPP/7zip/Compress/Branch/BranchCoder.cpp
author Wuzzy <Wuzzy2@mail.ru>
Mon, 03 Sep 2018 00:03:06 +0200
changeset 13743 d7b72ea8d136
parent 12213 bb5522e88ab2
permissions -rw-r--r--
Fix buggy behaviour when setting TurnTimeLeft through Retreat

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