Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Diagnostics.Tracing.ManifestBuilder Class Referencesealed

Classes

class  ChannelInfo
 

Public Member Functions

 ManifestBuilder (string providerName, Guid providerGuid, string dllName, ResourceManager resources, EventManifestOptions flags)
 
void AddOpcode (string name, int value)
 
void AddTask (string name, int value)
 
void AddKeyword (string name, ulong value)
 
void AddChannel (string name, int value, EventChannelAttribute channelAttribute)
 
ulong[] GetChannelData ()
 
void StartEvent (string eventName, EventAttribute eventAttribute)
 
void AddEventParameter (Type type, string name)
 
void EndEvent ()
 
ulong GetChannelKeyword (EventChannel channel, ulong channelKeyword=0uL)
 
byte[] CreateManifest ()
 
void ManifestError (string msg, bool runtimeCritical=false)
 

Package Functions

string GetLocalizedMessage (string key, CultureInfo ci, bool etwFormat)
 

Properties

IList< stringErrors [get]
 
bool HasResources [get]
 

Private Member Functions

string CreateManifestString ()
 
void WriteNameAndMessageAttribs (StringBuilder stringBuilder, string elementName, string name)
 
void WriteMessageAttrib (StringBuilder stringBuilder, string elementName, string name, string value)
 
string GetChannelName (EventChannel channel, string eventName, string eventMessage)
 
string GetTaskName (EventTask task, string eventName)
 
string GetOpcodeName (EventOpcode opcode, string eventName)
 
void AppendKeywords (StringBuilder sb, ulong keywords, string eventName)
 
string GetTypeName (Type type)
 
string TranslateToManifestConvention (string eventMessage, string evtName)
 
int TranslateIndexToManifestConvention (int idx, string evtName)
 

Static Private Member Functions

static EventChannelType EventChannelToChannelType (EventChannel channel)
 
static EventChannelAttribute GetDefaultChannelAttribute (EventChannel channel)
 
static void AppendLevelName (StringBuilder sb, EventLevel level)
 
static void UpdateStringBuilder ([NotNull] ref StringBuilder stringBuilder, string eventMessage, int startIndex, int count)
 

Private Attributes

readonly Dictionary< int, stringopcodeTab
 
Dictionary< int, stringtaskTab
 
Dictionary< int, ChannelInfochannelTab
 
Dictionary< ulong, stringkeywordTab
 
Dictionary< string, TypemapsTab
 
readonly Dictionary< string, stringstringTab
 
ulong nextChannelKeywordBit = 9223372036854775808uL
 
readonly StringBuilder sb
 
readonly StringBuilder events
 
readonly StringBuilder templates
 
readonly string providerName
 
readonly ResourceManager resources
 
readonly EventManifestOptions flags
 
readonly IList< stringerrors
 
readonly Dictionary< string, List< int > > perEventByteArrayArgIndices
 
string eventName
 
int numParams
 
List< int > byteArrArgIndices
 

Static Private Attributes

static readonly string[] s_escapes = new string[8] { "&amp;", "&lt;", "&gt;", "&apos;", "&quot;", "%r", "%n", "%t" }
 

Detailed Description

Definition at line 10 of file ManifestBuilder.cs.


The documentation for this class was generated from the following file: