55 references to Statics
System.Private.CoreLib (55)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs (16)
50variableCount ? Statics.InTypeVariableCountFlag : (byte)0, 68Statics.InTypeFixedCountFlag, 86Statics.InTypeCustomCountFlag, 109Statics.CheckName(name); 110int coreType = (int)dataType & Statics.InTypeMask; 114this.outType = (byte)(((int)dataType >> 8) & Statics.OutTypeMask); 138this.outType |= Statics.OutTypeChainFlag; 143this.inType |= Statics.InTypeChainFlag; 149this.inType |= Statics.InTypeChainFlag; 151if ((this.outType & Statics.OutTypeMask) == 0) 183if (0 != (this.inType & Statics.InTypeChainFlag)) 192if (0 != (this.outType & Statics.OutTypeChainFlag)) 194Statics.EncodeTags((int)this.tags, ref pos, metadata); 199if (0 != (this.inType & Statics.InTypeFixedCountFlag)) 209if (Statics.InTypeCustomCountFlag == (this.inType & Statics.InTypeCountMask) &&
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\NameInfo.cs (6)
32private static int lastIdentity = Statics.TraceLoggingChannel << 24; 41this.tags = tags & Statics.EventTagsMask; 45Statics.EncodeTags((int)this.tags, ref tagsPos, null); 47this.nameMetadata = Statics.MetadataForString(name, tagsPos, 0, typeMetadataSize); 50Statics.EncodeTags((int)this.tags, ref tagsPos, this.nameMetadata); 60return this.Compare(key.Key, key.Value & Statics.EventTagsMask);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (11)
73collector.AddScalar(name!, Statics.FormatScalar(format, nativeFormat)); 91public static TraceLoggingTypeInfo IntPtr() => s_intptr ??= new ScalarTypeInfo(typeof(IntPtr), Statics.IntPtrType); 92public static TraceLoggingTypeInfo UIntPtr() => s_uintptr ??= new ScalarTypeInfo(typeof(UIntPtr), Statics.UIntPtrType); 134collector.AddArray(name!, Statics.FormatScalar(format, nativeFormat)); 152public static TraceLoggingTypeInfo IntPtr() => s_intptr ??= new ScalarArrayTypeInfo(typeof(IntPtr[]), Statics.IntPtrType, System.IntPtr.Size); 153public static TraceLoggingTypeInfo UIntPtr() => s_uintptr ??= new ScalarArrayTypeInfo(typeof(UIntPtr[]), Statics.UIntPtrType, System.IntPtr.Size); 179collector.AddNullTerminatedString(name, Statics.MakeDataType(TraceLoggingDataType.Utf16String, format)); 214collector.AddScalar(name!, Statics.MakeDataType(TraceLoggingDataType.FileTime, format)); 244group.AddScalar("Ticks", Statics.MakeDataType(TraceLoggingDataType.FileTime, format)); 273collector.AddScalar(name!, Statics.MakeDataType(TraceLoggingDataType.Int64, format)); 298collector.AddScalar(name!, Statics.MakeDataType(TraceLoggingDataType.Double, format));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (2)
772byte[] providerMetadata = Statics.MetadataForString(this.Name, 0, traitMetaData.Count, 0); 783m_providerMetadata = Statics.MetadataForString(this.Name, 0, 0, 0);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (7)
94this.level = Statics.DefaultLevel; 100this.level = Statics.Combine((int)typeInfo.Level, this.level); 101this.opcode = Statics.Combine((int)typeInfo.Opcode, this.opcode); 104if (Statics.ShouldOverrideFieldName(paramName!)) 127this.level = Statics.DefaultLevel; 132this.level = Statics.Combine((int)typeInfo.Level, this.level); 133this.opcode = Statics.Combine((int)typeInfo.Opcode, this.opcode);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (4)
109var size = (TraceLoggingDataType)((int)type & Statics.InTypeMask) switch 135switch ((TraceLoggingDataType)((int)type & Statics.InTypeMask)) 163switch ((TraceLoggingDataType)((int)type & Statics.InTypeMask)) 186switch ((TraceLoggingDataType)((int)type & Statics.InTypeMask))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (2)
44Statics.CheckName(name); 149instance = Statics.CreateDefaultTypeInfo(type, recursionCheck);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (7)
32if (Statics.HasCustomAttribute(propertyInfo, typeof(EventIgnoreAttribute))) 56EventFieldAttribute? fieldAttribute = Statics.GetCustomAttribute<EventFieldAttribute>(propertyInfo); 61: Statics.ShouldOverrideFieldName(propertyInfo.Name) 76this.level = (EventLevel)Statics.Combine((int)typeInfo.Level, (int)this.level); 77this.opcode = (EventOpcode)Statics.Combine((int)typeInfo.Opcode, (int)this.opcode); 84this.level = (EventLevel)Statics.Combine((int)eventAttrib.Level, (int)this.level); 85this.opcode = (EventOpcode)Statics.Combine((int)eventAttrib.Opcode, (int)this.opcode);