| 49 | } |
| 50 | |
| 51 | void KeybufManager::RegisterBuf(BYTE* p, DWORD len) |
| 52 | { |
| 53 | if (!m_bActive) |
| 54 | return; |
| 55 | |
| 56 | if (m_bFinalized) |
| 57 | throw std::exception("KeyBufManager::RegisterBuf called while finalized"); |
| 58 | |
| 59 | KeyBuf buf; |
| 60 | |
| 61 | buf.ptr = p; |
| 62 | buf.len = len; |
| 63 | |
| 64 | m_total_len += len; |
| 65 | |
| 66 | m_bufs.push_back(buf); |
| 67 | } |
| 68 | |
| 69 | bool KeybufManager::Finalize(bool use_key_cache) |
| 70 | { |
no outgoing calls
no test coverage detected