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

Function createMemoryStream

edrav2/iprj/libcore/src/memstream.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144//
145//
146ObjPtr<IReadableStream> createMemoryStream(Size nStreamSize)
147{
148 Dictionary vSettings;
149 if (nStreamSize != c_nMaxSize)
150 vSettings = Dictionary({ {"size", nStreamSize}, {"allocMem", true} });
151
152 auto pObj = createObject(CLSID_MemoryStream, vSettings);
153 return queryInterface<IReadableStream>(pObj);
154}
155
156//
157//

Callers 15

test_crypt_md5.cppFile · 0.85
test_crypt_xxh.cppFile · 0.85
executeMethod · 0.85
test_base64.cppFile · 0.85
test_memstream.cppFile · 0.85

Calls 2

DictionaryClass · 0.50
createClass · 0.50

Tested by 1

executeMethod · 0.68