mirror of
https://github.com/holub/mame
synced 2025-10-08 17:37:56 +03:00
19 lines
327 B
C++
19 lines
327 B
C++
// BranchMisc.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "BranchMisc.h"
|
|
|
|
STDMETHODIMP CBranchCoder::Init()
|
|
{
|
|
_bufferPos = 0;
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP_(UInt32) CBranchCoder::Filter(Byte *data, UInt32 size)
|
|
{
|
|
UInt32 processed = (UInt32)BraFunc(data, size, _bufferPos, _encode);
|
|
_bufferPos += processed;
|
|
return processed;
|
|
}
|