serialize_ncc_modelT_serialize_ncc_modelSerializeNccModelSerializeNccModelserialize_ncc_model (Operator)
Name
serialize_ncc_modelT_serialize_ncc_modelSerializeNccModelSerializeNccModelserialize_ncc_model
— Serialize an NCC model.
Signature
def serialize_ncc_model(model_id: HHandle) -> HHandle
Description
serialize_ncc_modelserialize_ncc_modelSerializeNccModelSerializeNccModelserialize_ncc_model
serializes the data of an NCC model
(see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
for an introduction of the
basic principle of serialization). The same data that is written
in a file by write_ncc_modelwrite_ncc_modelWriteNccModelWriteNccModelwrite_ncc_model
is converted to a serialized
item. The NCC model is defined by the handle
ModelIDModelIDModelIDmodelIDmodel_id
. The serialized NCC model is returned
by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be
deserialized by deserialize_ncc_modeldeserialize_ncc_modelDeserializeNccModelDeserializeNccModeldeserialize_ncc_model
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ModelIDModelIDModelIDmodelIDmodel_id
(input_control) ncc_model →
HNCCModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
(output_control) serialized_item →
HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator
serialize_ncc_modelserialize_ncc_modelSerializeNccModelSerializeNccModelserialize_ncc_model
returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
Possible Predecessors
create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelcreate_ncc_model
Possible Successors
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_ncc_modeldeserialize_ncc_modelDeserializeNccModelDeserializeNccModeldeserialize_ncc_model
Module
Matching