Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GenerateMetadataForNamedTypeV2()

static unsafe bool System.Diagnostics.Tracing.EventParameterInfo.GenerateMetadataForNamedTypeV2 ( string name,
TraceLoggingTypeInfo typeInfo,
byte * pMetadataBlob,
ref uint offset,
uint blobSize )
inlinestaticprivate

Definition at line 109 of file EventParameterInfo.cs.

110 {
111 if (!GetMetadataLengthForNamedTypeV2(name, typeInfo, out var size))
112 {
113 return false;
114 }
115 EventPipeMetadataGenerator.WriteToBuffer(pMetadataBlob, blobSize, ref offset, size);
116 fixed (char* src = name)
117 {
118 EventPipeMetadataGenerator.WriteToBuffer(pMetadataBlob, blobSize, ref offset, (byte*)src, (uint)((name.Length + 1) * 2));
119 }
120 return GenerateMetadataForTypeV2(typeInfo, pMetadataBlob, ref offset, blobSize);
121 }
static unsafe bool GenerateMetadataForTypeV2(TraceLoggingTypeInfo typeInfo, byte *pMetadataBlob, ref uint offset, uint blobSize)
static bool GetMetadataLengthForNamedTypeV2(string name, TraceLoggingTypeInfo typeInfo, out uint size)

References System.Diagnostics.Tracing.EventParameterInfo.GenerateMetadataForTypeV2(), System.Diagnostics.Tracing.EventParameterInfo.GetMetadataLengthForNamedTypeV2(), System.offset, and System.Diagnostics.Tracing.EventPipeMetadataGenerator.WriteToBuffer().

Referenced by System.Diagnostics.Tracing.EventParameterInfo.GenerateMetadataForTypeV2(), and System.Diagnostics.Tracing.EventParameterInfo.GenerateMetadataV2().