The description of
bool getNextEvent (MidiMessage& result, int& samplePosition) says
"@param result on return, this will be the message (the MidiMessage's timestamp is not set)"
whereas the code looks like
..
result = MidiMessage (data + sizeof (int32) + sizeof (uint16), itemSize, samplePosition);
..
i.e the timstamp is set