Esempio n. 1
0
 /// <summary>
 /// Reads trace data.
 /// </summary>
 /// <param name="prefix">The previously loaded prefix file.</param>
 /// <param name="reader">Binary reader containing the trace data.</param>
 public TraceFile(TracePrefixFile prefix, FastBinaryReader reader)
     : this(reader)
 {
     // Set prefix
     Prefix = prefix;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new trace file from the given byte buffer, using a previously initialized prefix.
 /// </summary>
 /// <param name="prefix">The previously loaded prefix file.</param>
 /// <param name="buffer">Buffer containing the trace data.</param>
 /// <param name="allocations">Optional. Allocation lookup table, indexed by IDs.</param>
 public TraceFile(TracePrefixFile prefix, Memory <byte> buffer, Dictionary <int, Allocation> allocations = null)
     : this(allocations)
 {
     Prefix  = prefix;
     _buffer = buffer;
 }