write_memory_block🔗
Short description🔗
write_memory_block — Write a memory block to a file.
Signature🔗
write_memory_block( memory_block MemoryBlockHandle, filename.write FileName )
Description🔗
The operator write_memory_block writes the byte content of the memory
block MemoryBlockHandle to the file FileName. The memory
block can be read again with read_memory_block.
The default HALCON file extension for memory block files is '.bin', but any file extension can be chosen, including none.
Attention🔗
Choosing a file extension that does not fit the byte content of the memory
block MemoryBlockHandle only changes the name of the file, not the
bytes written to disk.
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.
Parameters🔗
MemoryBlockHandle (input_control) memory_block → (handle)
Memory block handle.
FileName (input_control) filename.write → (string)
Name of the file.
Default: 'memory_block.bin'
File extension: .bin
Result🔗
The operator write_memory_block returns the value 2 (H_MSG_TRUE) if the
passed handle is valid and if the memory block was successfully written into
the named file. Otherwise, an exception is raised.
Combinations with other operators🔗
Combinations
Possible predecessors
create_memory_block_extern, create_memory_block_extern_copy, image_to_memory_block
See also
Module🔗
Foundation