mirror of
https://github.com/Kae7in/perfview
synced 2026-08-09 12:09:44 +00:00
Use TraceEventRawReaders.ReadGuid in GetGuidAt
This commit is contained in:
committed by
Vance Morrison
parent
02d354310e
commit
571d1c5a29
@@ -1411,17 +1411,7 @@ namespace Microsoft.Diagnostics.Tracing
|
||||
/// </summary>
|
||||
internal protected Guid GetGuidAt(int offset)
|
||||
{
|
||||
return new Guid(GetInt32At(offset),
|
||||
(short)GetInt16At(offset + 4),
|
||||
(short)GetInt16At(offset + 6),
|
||||
(byte)GetByteAt(offset + 8),
|
||||
(byte)GetByteAt(offset + 9),
|
||||
(byte)GetByteAt(offset + 10),
|
||||
(byte)GetByteAt(offset + 11),
|
||||
(byte)GetByteAt(offset + 12),
|
||||
(byte)GetByteAt(offset + 13),
|
||||
(byte)GetByteAt(offset + 14),
|
||||
(byte)GetByteAt(offset + 15));
|
||||
return TraceEventRawReaders.ReadGuid(DataStart, offset);
|
||||
}
|
||||
/// <summary>
|
||||
/// Get the DateTime that serialized (as a windows FILETIME) at 'offset' in the payload bytes.
|
||||
|
||||
Reference in New Issue
Block a user