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

◆ GetMetadataLengthForProperty()

static uint System.Diagnostics.Tracing.EventParameterInfo.GetMetadataLengthForProperty ( PropertyAnalysis property)
inlinestaticprivate

Definition at line 286 of file EventParameterInfo.cs.

287 {
288 uint num = 0u;
289 if (property.typeInfo is InvokeTypeInfo invokeTypeInfo)
290 {
291 num += 8;
292 PropertyAnalysis[] properties = invokeTypeInfo.properties;
293 if (properties != null)
294 {
295 PropertyAnalysis[] array = properties;
296 foreach (PropertyAnalysis property2 in array)
297 {
298 num += GetMetadataLengthForProperty(property2);
299 }
300 }
301 return num + (uint)((property.name.Length + 1) * 2);
302 }
303 return num + (uint)(4 + (property.name.Length + 1) * 2);
304 }
static uint GetMetadataLengthForProperty(PropertyAnalysis property)

References System.array, System.Diagnostics.Tracing.EventParameterInfo.GetMetadataLengthForProperty(), System.Diagnostics.Tracing.PropertyAnalysis.name, and System.Diagnostics.Tracing.PropertyAnalysis.typeInfo.

Referenced by System.Diagnostics.Tracing.EventParameterInfo.GetMetadataLength(), and System.Diagnostics.Tracing.EventParameterInfo.GetMetadataLengthForProperty().