/// <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; }
/// <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; }