loadHeContext#
- load_he_context(buf: bytes) pyhelayers.HeContext #
Loads a context object from the given buffer. Context type is dynamically determined by content of buffer.
- Parameters:
buf – a memory buffer to load the object from.
- Raises:
RuntimeError – If the given buffer does not contain an HeContext object, or if the object was saved with a mismatching HELayers version.
-
std::shared_ptr<HeContext> helayers::loadHeContext(std::istream &stream)#
Loads a context object from the given stream.
Context type is dynamically determined by content of stream.
- Parameters:
stream – The stream to load from.
- Throws:
runtime_error – If the given stream does not contain an HeContext object, or if the object was saved with a mismatching HElayers version.