| 223 | } |
| 224 | |
| 225 | XnBool Record::IsHeaderValid() const |
| 226 | { |
| 227 | if (m_pData == NULL) |
| 228 | { |
| 229 | return FALSE; |
| 230 | } |
| 231 | |
| 232 | if (m_pHeader->m_nMagic != Record::MAGIC) |
| 233 | { |
| 234 | return FALSE; |
| 235 | } |
| 236 | |
| 237 | if (m_pHeader->m_nFieldsSize < HEADER_SIZE) |
| 238 | { |
| 239 | return FALSE; |
| 240 | } |
| 241 | |
| 242 | return TRUE; |
| 243 | } |
| 244 | |
| 245 | |
| 246 | void Record::ResetRead() |
no outgoing calls
no test coverage detected