32#define CODEC_COMPUTE_CHECKSUM 1
69 virtual Status Process(
const u8* in,
size_t inSize,
u8*
out,
size_t outSize,
size_t& inConsumed,
size_t& outProduced) = 0;
std::shared_ptr< ICodec > PICodec
Definition: codec.h:92
i64 Status
Error handling system.
Definition: status.h:173
virtual ~ICodec()
note: the implementation should not check whether any data remains - codecs are sometimes destroyed w...
Definition: codec.cpp:26
virtual Status Process(const u8 *in, size_t inSize, u8 *out, size_t outSize, size_t &inConsumed, size_t &outProduced)=0
process (i.e.
virtual Status Reset()=0
clear all previous state and prepare for reuse.
virtual size_t MaxOutputSize(size_t inSize) const =0
virtual u32 UpdateChecksum(u32 checksum, const u8 *in, size_t inSize) const =0
update a checksum to reflect the contents of a buffer.
virtual Status Finish(u32 &checksum, size_t &outProduced)=0
Flush buffers and make sure all output has been produced.
uint8_t u8
Definition: types.h:37
uint32_t u32
Definition: types.h:39
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:407