MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / IsHeaderValid

Method IsHeaderValid

Source/Modules/Common/DataRecords.cpp:225–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225XnBool 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
246void Record::ResetRead()

Callers 2

ReadRecordHeaderMethod · 0.80
HandleRecordMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected