| 91 | } |
| 92 | |
| 93 | void mime::update_begin(const char* path) { |
| 94 | reset(); |
| 95 | if (m_pFilePath) { |
| 96 | acl_myfree(m_pFilePath); |
| 97 | } |
| 98 | if (path && *path) { |
| 99 | m_pFilePath = acl_mystrdup(path); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | bool mime::update(const char* data, size_t len) const { |
| 104 | return mime_state_update(m_pMimeState, data, (int) len) == 1; |
no outgoing calls