MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / convertStream

Function convertStream

edrav2/iprj/libcore/src/streamcache.cpp:296–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294//
295//
296ObjPtr<IReadableStream> convertStream(ObjPtr<IRawReadableStream> pStream, IoSize nStreamSize)
297{
298 auto pRStream = queryInterfaceSafe<IReadableStream>(pStream);
299 if (pRStream != nullptr)
300 return pRStream;
301 auto pObj = createObject(CLSID_RawReadableStreamConverter,
302 Dictionary({ {"stream", pStream}, {"size", nStreamSize} }));
303 return queryInterface<IReadableStream>(pObj);
304}
305
306} // namespace io
307} // namespace cmd

Callers 4

deserializeFromLbvsFunction · 0.85
getMethod · 0.85
deserializeFromJsonFunction · 0.85

Calls 1

DictionaryClass · 0.50

Tested by

no test coverage detected