loadHeModel#

load_he_model(context: pyhelayers.HeContext, buf: bytes) pyhelayers.HeModel#

Loads an HeModel from the given buffer.

Parameters:
  • context – The HeContext to initialize the HeModel with.

  • buf – The buffer to load from.

Raises:

RuntimeError – If the given buffer does not contain an HeModel or if loading fails due to an illegal header of the HeModel object in the given buffer.