mirror of
https://github.com/holub/mame
synced 2025-06-25 05:44:23 +03:00
18 lines
403 B
C++
18 lines
403 B
C++
// DummyOutStream.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "DummyOutStream.h"
|
|
|
|
Z7_COM7F_IMF(CDummyOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize))
|
|
{
|
|
UInt32 realProcessedSize = size;
|
|
HRESULT res = S_OK;
|
|
if (_stream)
|
|
res = _stream->Write(data, size, &realProcessedSize);
|
|
_size += realProcessedSize;
|
|
if (processedSize)
|
|
*processedSize = realProcessedSize;
|
|
return res;
|
|
}
|