17 for (
int i = 0; i < parameters.Length; i++)
20 array[i].SetInfo(parameters[i].
Name, parameters[i].ParameterType, typeInfo);
22 return GenerateMetadata(eventMetadata.Descriptor.EventId, eventMetadata.Name, eventMetadata.Descriptor.Keywords, eventMetadata.Descriptor.Level, eventMetadata.Descriptor.Version, (
EventOpcode)eventMetadata.Descriptor.Opcode,
array);
30 for (
int i = 0; i < typeInfos.Length; i++)
32 string name =
string.Empty;
33 if (paramNames !=
null)
37 array[i].SetInfo(name, typeInfos[i].DataType, typeInfos[i]);
48 uint num = (uint)(24 + (eventName.Length + 1) * 2);
83 uint num4 = ((opcode != 0) ? 6u : 0u);
84 uint num5 = ((num2 != 0) ? (num2 + 5) : 0u);
85 uint num6 = num5 + num4;
86 uint num7 = num + num6;
87 array =
new byte[num7];
88 fixed (
byte* ptr =
array)
92 fixed (
char* src = eventName)
146 for (
int i = 0; i < srcLength; i++)
156 offset += (uint)
sizeof(T);
readonly TraceLoggingTypeInfo[] typeInfos
readonly string[] paramNames
bool GetMetadataLengthV2(out uint size)
bool GetMetadataLength(out uint size)
static bool GetTypeInfoFromType(Type type, out TraceLoggingTypeInfo typeInfo)
unsafe bool GenerateMetadata(byte *pMetadataBlob, ref uint offset, uint blobSize)
unsafe bool GenerateMetadataV2(byte *pMetadataBlob, ref uint offset, uint blobSize)