loadIoProcessor#
- load_io_processor(context: pyhelayers.HeContext, buf: bytes) pyhelayers.ModelIoProcessor #
Loads a ModelIoProcessor object from the given buffer.
- Parameters:
context – The HeContext to initialize the ModelIoProcessor with.
buf – The buffer to load from.
- Raises:
RuntimeError – If the given buffer does not contain a ModelIoProcessor or if loading fails due to an illegal header of the ModelIoProcessor object in the given buffer.
-
std::shared_ptr<ModelIoProcessor> helayers::loadIoProcessor(const HeContext &context, std::istream &stream)#
Loads a ModelIoProcessor object from the given stream.
- Parameters:
context – The HeContext to initialize the ModelIoProcessor with.
stream – The stream to load from.
- Throws:
runtime_error – If the given stream does not contain a ModelIoProcessor object or if loading fails due to an illegal header of the ModelIoProcessor object in the given stream.