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

Method ReadRecordFields

Source/Modules/nimRecorder/PlayerNode.cpp:708–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708XnStatus PlayerNode::ReadRecordFields(Record &record)
709{
710 XnUInt32 nBytesToRead = record.GetSize() - record.HEADER_SIZE;
711 XnUInt32 nBytesRead = 0;
712 XnStatus nRetVal = Read(record.GetData() + record.HEADER_SIZE, nBytesToRead, nBytesRead);
713 XN_IS_STATUS_OK(nRetVal);
714 if (nBytesRead < nBytesToRead)
715 {
716 XN_LOG_ERROR_RETURN(XN_STATUS_CORRUPT_FILE, XN_MASK_OPEN_NI, "Incorrect number of bytes read");
717 }
718 return XN_STATUS_OK;
719}
720
721XnStatus PlayerNode::ReadRecord(Record &record)
722{

Callers

nothing calls this directly

Calls 3

ReadFunction · 0.85
GetSizeMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected