MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / Decoder

Method Decoder

MonaCore/include/Mona/Decoder.h:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40public:
41 Decoder(Invoker& invoker, const char* name) : poolBuffers(invoker.poolBuffers), _name(name), _pThread(NULL), _poolThreads(invoker.poolThreads), _pDecoding(new Decoding(invoker, name)),
42 onDecoding([this](Exception& ex, UInt8* data, UInt32 size) { return decoding(ex, data, size); }) {
43
44 _pDecoding->OnDecodedEnd::subscribe(*this);
45 _pDecoding->Events::template OnDecoded<DecodedType>::subscribe(*this);
46 _pDecoding->Events::OnDecoding::subscribe(onDecoding);
47 }
48
49 virtual ~Decoder() {
50 _pDecoding->Events::OnDecoding::unsubscribe(onDecoding);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected