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.