| 31 | static constexpr LOG_COLOR DEMO_PRINT_COLOR = {191, 178, 178}; |
| 32 | |
| 33 | bool CDemoHeader::Valid() const |
| 34 | { |
| 35 | // Check marker and ensure that strings are zero-terminated and valid UTF-8. |
| 36 | return mem_comp(m_aMarker, gs_aHeaderMarker, sizeof(gs_aHeaderMarker)) == 0 && |
| 37 | mem_has_null(m_aNetversion, sizeof(m_aNetversion)) && str_utf8_check(m_aNetversion) && |
| 38 | mem_has_null(m_aMapName, sizeof(m_aMapName)) && str_utf8_check(m_aMapName) && |
| 39 | mem_has_null(m_aType, sizeof(m_aType)) && str_utf8_check(m_aType) && |
| 40 | mem_has_null(m_aTimestamp, sizeof(m_aTimestamp)) && str_utf8_check(m_aTimestamp); |
| 41 | } |
| 42 | |
| 43 | CDemoRecorder::CDemoRecorder(class CSnapshotDelta *pSnapshotDelta, bool NoMapData) |
| 44 | { |
no test coverage detected