#include <opennurbs_string.h>
|
| | ON_CheckSum () |
| |
| | ~ON_CheckSum () |
| |
| bool | CheckBuffer (size_t size, const void *buffer) const |
| | Test buffer to see if it has a matching checksum. Paramters: size - [in] size in bytes buffer - [in] More...
|
| |
| bool | CheckFile (FILE *fp, bool bSkipTimeCheck=false) const |
| | Test buffer to see if it has a matching checksum. Paramters: fp - [in] pointer to file opened with ON::OpenFile(...,"rb") bSkipTimeCheck - [in] if true, the time of last modification is not checked. More...
|
| |
| bool | CheckFile (const wchar_t *filename, bool bSkipTimeCheck=false) const |
| | Test buffer to see if it has a matching checksum. Paramters: filename - [in] bSkipTimeCheck - [in] if true, the time of last modification is not checked. More...
|
| |
| void | Dump (class ON_TextLog &) const |
| |
| bool | IsSet () const |
| |
| bool | Read (class ON_BinaryArchive &) |
| |
| bool | SetBufferCheckSum (size_t size, const void *buffer, time_t time) |
| |
| bool | SetFileCheckSum (FILE *fp) |
| |
| bool | SetFileCheckSum (const wchar_t *filename) |
| |
| bool | Write (class ON_BinaryArchive &) const |
| |
| void | Zero () |
| | zeros all fields. More...
|
| |
◆ ON_CheckSum()
| ON_CheckSum::ON_CheckSum |
( |
| ) |
|
◆ ~ON_CheckSum()
| ON_CheckSum::~ON_CheckSum |
( |
| ) |
|
◆ CheckBuffer()
| bool ON_CheckSum::CheckBuffer |
( |
size_t |
size, |
|
|
const void * |
buffer |
|
) |
| const |
Test buffer to see if it has a matching checksum. Paramters: size - [in] size in bytes buffer - [in]
- Returns
- True if the buffer has a matching checksum.
◆ CheckFile() [1/2]
| bool ON_CheckSum::CheckFile |
( |
FILE * |
fp, |
|
|
bool |
bSkipTimeCheck = false |
|
) |
| const |
Test buffer to see if it has a matching checksum. Paramters: fp - [in] pointer to file opened with ON::OpenFile(...,"rb") bSkipTimeCheck - [in] if true, the time of last modification is not checked.
- Returns
- True if the file has a matching checksum.
◆ CheckFile() [2/2]
| bool ON_CheckSum::CheckFile |
( |
const wchar_t * |
filename, |
|
|
bool |
bSkipTimeCheck = false |
|
) |
| const |
Test buffer to see if it has a matching checksum. Paramters: filename - [in] bSkipTimeCheck - [in] if true, the time of last modification is not checked.
- Returns
- True if the file has a matching checksum.
◆ Dump()
| void ON_CheckSum::Dump |
( |
class ON_TextLog & |
| ) |
const |
◆ IsSet()
| bool ON_CheckSum::IsSet |
( |
| ) |
const |
- Returns
- True if checksum is set.
◆ Read()
◆ SetBufferCheckSum()
| bool ON_CheckSum::SetBufferCheckSum |
( |
size_t |
size, |
|
|
const void * |
buffer, |
|
|
time_t |
time |
|
) |
| |
- Parameters
-
| size | [in] number of bytes in buffer |
| buffer | [in] |
| time | [in] last modified time in seconds since Jan 1, 1970, UCT |
- Returns
- True if checksum is set.
◆ SetFileCheckSum() [1/2]
| bool ON_CheckSum::SetFileCheckSum |
( |
FILE * |
fp | ) |
|
- Parameters
-
| fp | [in] pointer to a file opened with ON:FileOpen(...,"rb") |
- Returns
- True if checksum is set.
◆ SetFileCheckSum() [2/2]
| bool ON_CheckSum::SetFileCheckSum |
( |
const wchar_t * |
filename | ) |
|
- Parameters
-
| filename | [in] name of file. |
- Returns
- True if checksum is set.
◆ Write()
◆ Zero()
| void ON_CheckSum::Zero |
( |
| ) |
|
◆ m_crc
| ON__UINT32 ON_CheckSum::m_crc[8] |
◆ m_size
| size_t ON_CheckSum::m_size |
◆ m_time
| time_t ON_CheckSum::m_time |
◆ UnsetCheckSum