I have a segment of code here that I am not able to analyze
Expand|Select|Wrap|Line Numbers
- template <typename FieldType>
- int CheckHeaderField(
- FieldType& field, const char* buffer, unsigned long bufferSize,
- bool continueParse
- )
- {
- const char* fieldptr = reinterpret_cast<const char*>(&field);
- const char* endptr = buffer + bufferSize;
- AliHLTUInt32_t bufferRemaining = endptr > fieldptr ? endptr - fieldptr : 0;
- /*....And the rest of the code here*/
- }
I printed endptr but the output is just funny characters.