Skip to content

clear_data_code_2d_modelClearDataCode2dModelClearDataCode2dModelclear_data_code_2d_modelT_clear_data_code_2d_model🔗

Short description🔗

clear_data_code_2d_modelClearDataCode2dModelClearDataCode2dModelclear_data_code_2d_modelT_clear_data_code_2d_model — Delete a 2D code model and free the allocated memory.

Signature🔗

clear_data_code_2d_model( datacode_2d DataCodeHandle )void ClearDataCode2dModel( const HTuple& DataCodeHandle )static void HOperatorSet.ClearDataCode2dModel( HTuple dataCodeHandle )def clear_data_code_2d_model( data_code_handle: HHandle ) -> None

Herror T_clear_data_code_2d_model( const Htuple DataCodeHandle )

void HDataCode2D::ClearDataCode2dModel( ) const

void HDataCode2D.ClearDataCode2dModel( )

Description🔗

The operator clear_data_code_2d_modelClearDataCode2dModel deletes a 2D code model that was created by create_data_code_2d_modelCreateDataCode2dModel or read_data_code_2d_modelReadDataCode2dModel. All memory used by the model is freed. The handle of the model is passed in DataCodeHandledataCodeHandledata_code_handle. After the operator call it is invalid.

For an explanation of the concept of the 2D code reader see the introduction of chapter Identification / Data Code.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters🔗

DataCodeHandledataCodeHandledata_code_handle (input_control, state is modified) datacode_2d → (handle)HTuple (HHandle)HDataCode2D, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the 2D code model.

Result🔗

The operator clear_data_code_2d_modelClearDataCode2dModel returns the value 2 (H_MSG_TRUE) if a valid handle was passed and the referred 2D code model can be freed correctly. Otherwise, an exception is raised.

Combinations with other operators🔗

Combinations

See also

create_data_code_2d_modelCreateDataCode2dModel, read_data_code_2d_modelReadDataCode2dModel

Module🔗

Data Code