hexa_hash = crc32(str)
hexa_hash = crc32(filename)
hexa_hash = crc32(str, '-file')
hexa_hash = crc32(str, '-string')
| Parameter | Description |
|---|---|
| str | a character vector, cell of string or array of strings: content of string will be hashed. |
| filename | a string: existing filename: content of the file will be hashed. |
| '-file' or '-string' | force to hash as file or string content. |
| Parameter | Description |
|---|---|
| hexa_hash | a character vector, cell of string or array of strings: hashed result (checksum). |
crc32 get crc32 checksum.
R = crc32('Nelson')
R = crc32({'Hello', 'World'})
R = crc32(["Hello"; "World"])
R = crc32([modulepath('matio', 'tests'), '/mat/test_char_array_unicode_7.4_GLNX86.mat'])
R = crc32([modulepath('matio', 'tests'), '/mat/test_char_array_unicode_7.4_GLNX86.mat'], '-file')
R = crc32([modulepath('matio', 'tests'), '/mat/test_char_array_unicode_7.4_GLNX86.mat'], '-string')
| Version | Description |
|---|---|
| 1.15.0 | initial version |