| 40 | } |
| 41 | |
| 42 | void CRC4EncryptableBuffer::Append(const uint8* buffer, int n) |
| 43 | { |
| 44 | wxASSERT(!m_encrypted); |
| 45 | if (!m_encrypted) { |
| 46 | CMemFile::Append(buffer, n); |
| 47 | } else { |
| 48 | throw std::runtime_error( |
| 49 | "(CRC4EncryptableBuffer::Append): " |
| 50 | "Tried to append data to an encrypted buffer."); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | |
| 55 | void CRC4EncryptableBuffer::Encrypt() |
no outgoing calls