write_encrypted_itemT_write_encrypted_itemWriteEncryptedItemWriteEncryptedItemwrite_encrypted_item (Operator)

Name

write_encrypted_itemT_write_encrypted_itemWriteEncryptedItemWriteEncryptedItemwrite_encrypted_item — Write an encrypted item to a file.

Signature

write_encrypted_item( : : EncryptedItemHandle, FileName : )

Herror T_write_encrypted_item(const Htuple EncryptedItemHandle, const Htuple FileName)

void WriteEncryptedItem(const HTuple& EncryptedItemHandle, const HTuple& FileName)

static void HOperatorSet.WriteEncryptedItem(HTuple encryptedItemHandle, HTuple fileName)

def write_encrypted_item(encrypted_item_handle: HHandle, file_name: str) -> None

Description

The operator write_encrypted_itemwrite_encrypted_itemWriteEncryptedItemWriteEncryptedItemWriteEncryptedItemwrite_encrypted_item writes the encrypted item EncryptedItemHandleEncryptedItemHandleEncryptedItemHandleEncryptedItemHandleencryptedItemHandleencrypted_item_handle to the file FileNameFileNameFileNameFileNamefileNamefile_name. The item can be read again with read_encrypted_itemread_encrypted_itemReadEncryptedItemReadEncryptedItemReadEncryptedItemread_encrypted_item.

The default HALCON file extension for encrypted item is '.henc'.

Execution Information

Parameters

EncryptedItemHandleEncryptedItemHandleEncryptedItemHandleEncryptedItemHandleencryptedItemHandleencrypted_item_handle (input_control)  encrypted_item HEncryptedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the encrypted item.

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of the file.

Default: 'encrypted_item.henc' "encrypted_item.henc" "encrypted_item.henc" "encrypted_item.henc" "encrypted_item.henc" "encrypted_item.henc"

File extension: .bin

Result

The operator write_encrypted_itemwrite_encrypted_itemWriteEncryptedItemWriteEncryptedItemWriteEncryptedItemwrite_encrypted_item returns the value 2 ( H_MSG_TRUE) if the passed handle is valid and if the encrypted item can be written into the named file. Otherwise, an exception is raised.

Possible Predecessors

encrypt_serialized_itemencrypt_serialized_itemEncryptSerializedItemEncryptSerializedItemEncryptSerializedItemencrypt_serialized_item

See also

read_encrypted_itemread_encrypted_itemReadEncryptedItemReadEncryptedItemReadEncryptedItemread_encrypted_item, decrypt_serialized_itemdecrypt_serialized_itemDecryptSerializedItemDecryptSerializedItemDecryptSerializedItemdecrypt_serialized_item

Module

Foundation