write_memory_block — Write a memory block to a file.
write_memory_block( : : MemoryBlockHandle, FileName : )
该算子 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.
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.
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
该算子 write_memory_block 返回值 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.
Foundation