21 if (typeCodeExtended ==
TypeCode.Object)
28 if (properties !=
null)
63 if (properties !=
null)
79 fixed (
char* src = property.
name)
87 if (typeCodeExtended ==
TypeCode.Object)
92 fixed (
char* src2 = property.
name)
116 fixed (
char* src = name)
129 if (properties !=
null)
153 if (!scalarArrayTypeInfo.DataType.HasElementType)
157 if (!
GetTypeInfoFromType(scalarArrayTypeInfo.DataType.GetElementType(), out var typeInfo2))
167 if (typeCodeExtended ==
TypeCode.Object)
178 if (
type == typeof(
bool))
183 if (
type == typeof(
byte))
188 if (
type == typeof(sbyte))
193 if (
type == typeof(
char))
198 if (
type == typeof(
short))
203 if (
type == typeof(ushort))
208 if (
type == typeof(
int))
213 if (
type == typeof(uint))
218 if (
type == typeof(
long))
223 if (
type == typeof(ulong))
238 if (
type == typeof(
float))
243 if (
type == typeof(
double))
261 if (typeCodeExtended ==
TypeCode.Object)
269 if (properties !=
null)
293 if (properties !=
null)
301 return num + (uint)((property.
name.Length + 1) * 2);
303 return num + (uint)(4 + (property.
name.Length + 1) * 2);
308 if (parameterType == typeof(
Guid))
312 if (parameterType == typeof(
IntPtr))
317 if (parameterType == typeof(
UIntPtr))
333 if (typeInfo ==
null)
341 if (properties !=
null)
365 if (!scalarArrayTypeInfo.DataType.HasElementType || !
GetTypeInfoFromType(scalarArrayTypeInfo.DataType.GetElementType(), out var typeInfo2))
385 size = (uint)(4 + (name.Length + 1) * 2);
readonly TraceLoggingTypeInfo typeInfo
static TraceLoggingTypeInfo UInt32()
static TraceLoggingTypeInfo Char()
static TraceLoggingTypeInfo Int32()
static TraceLoggingTypeInfo Guid()
static TraceLoggingTypeInfo Single()
static TraceLoggingTypeInfo UInt64()
static TraceLoggingTypeInfo UInt16()
static TraceLoggingTypeInfo UIntPtr()
static TraceLoggingTypeInfo SByte()
static TraceLoggingTypeInfo Boolean()
static TraceLoggingTypeInfo Int64()
static TraceLoggingTypeInfo Int16()
static TraceLoggingTypeInfo Byte()
static TraceLoggingTypeInfo Double()
static TraceLoggingTypeInfo IntPtr()
static TypeCode GetTypeCode(Type? type)
void SetInfo(string name, Type type, TraceLoggingTypeInfo typeInfo=null)
static uint GetMetadataLengthForProperty(PropertyAnalysis property)
bool GetMetadataLengthV2(out uint size)
bool GetMetadataLength(out uint size)
static unsafe bool GenerateMetadataForProperty(PropertyAnalysis property, byte *pMetadataBlob, ref uint offset, uint blobSize)
static TypeCode GetTypeCodeExtended(Type parameterType)
static unsafe bool GenerateMetadataForNamedTypeV2(string name, TraceLoggingTypeInfo typeInfo, byte *pMetadataBlob, ref uint offset, uint blobSize)
TraceLoggingTypeInfo TypeInfo
static bool GetMetadataLengthForTypeV2(TraceLoggingTypeInfo typeInfo, out uint size)
static unsafe bool GenerateMetadataForTypeV2(TraceLoggingTypeInfo typeInfo, byte *pMetadataBlob, ref uint offset, uint blobSize)
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)
static bool GetMetadataLengthForNamedTypeV2(string name, TraceLoggingTypeInfo typeInfo, out uint size)