In C/C++, can I create a HEF from memory instead of a file?

,

Yes the function Hef::create() support loading from memory instead of a file.