Ejemplo n.º 1
0
        public unsafe static void TraceLocation(LID lid)
        {
            DiagnosticContext.TraceTestLocation(lid.Value);
            if (DiagnosticContext.onLIDCallback != null)
            {
                DiagnosticContext.onLIDCallback(lid);
            }
            byte[] array;
            int    num;

            DiagnosticContext.GetBufferPointer(DiagnosticContext.SizeOfRecordFromSignature(268435456U), out array, out num);
            fixed(byte *ptr = &array[num])
            {
                DiagnosticContext.LocationRecord *ptr2 = (DiagnosticContext.LocationRecord *)ptr;
                ptr2->Lid = DiagnosticContext.AdjustLID(lid.Value, 268435456U);
            }
        }
Ejemplo n.º 2
0
        public unsafe static void TraceDword(LID lid, uint info)
        {
            DiagnosticContext.TraceTestLocation(lid.Value, 0U, info);
            if (DiagnosticContext.onLIDCallback != null)
            {
                DiagnosticContext.onLIDCallback(lid);
            }
            byte[] array;
            int    num;

            DiagnosticContext.GetBufferPointer(DiagnosticContext.SizeOfRecordFromSignature(269484032U), out array, out num);
            fixed(byte *ptr = &array[num])
            {
                DiagnosticContext.LocationAndDwordRecord *ptr2 = (DiagnosticContext.LocationAndDwordRecord *)ptr;
                ptr2->Lid  = DiagnosticContext.AdjustLID(lid.Value, 269484032U);
                ptr2->Info = info;
            }
        }
Ejemplo n.º 3
0
        public unsafe static void TraceStoreError(LID lid, uint storeError)
        {
            DiagnosticContext.TraceTestLocation(lid.Value, storeError);
            if (DiagnosticContext.onLIDCallback != null)
            {
                DiagnosticContext.onLIDCallback(lid);
            }
            byte[] array;
            int    num;

            DiagnosticContext.GetBufferPointer(DiagnosticContext.SizeOfRecordFromSignature(272629760U), out array, out num);
            fixed(byte *ptr = &array[num])
            {
                DiagnosticContext.LocationAndStoreErrorRecord *ptr2 = (DiagnosticContext.LocationAndStoreErrorRecord *)ptr;
                ptr2->Lid        = DiagnosticContext.AdjustLID(lid.Value, 272629760U);
                ptr2->StoreError = storeError;
            }
        }
Ejemplo n.º 4
0
        public unsafe static void TraceLong(LID lid, ulong info)
        {
            DiagnosticContext.TraceTestLocation(lid.Value, (uint)(info >> 32), (uint)(info & (ulong)-1));
            if (DiagnosticContext.onLIDCallback != null)
            {
                DiagnosticContext.onLIDCallback(lid);
            }
            byte[] array;
            int    num;

            DiagnosticContext.GetBufferPointer(DiagnosticContext.SizeOfRecordFromSignature(544210944U), out array, out num);
            fixed(byte *ptr = &array[num])
            {
                DiagnosticContext.LocationAndLongRecord *ptr2 = (DiagnosticContext.LocationAndLongRecord *)ptr;
                ptr2->Lid  = DiagnosticContext.AdjustLID(lid.Value, 544210944U);
                ptr2->Info = info;
            }
        }
Ejemplo n.º 5
0
        public unsafe static void TracePropTagError(LID lid, uint storeError, uint propTag)
        {
            DiagnosticContext.TraceTestLocation(lid.Value, storeError, propTag);
            if (DiagnosticContext.onLIDCallback != null)
            {
                DiagnosticContext.onLIDCallback(lid);
            }
            byte[] array;
            int    num;

            DiagnosticContext.GetBufferPointer(DiagnosticContext.SizeOfRecordFromSignature(543162368U), out array, out num);
            fixed(byte *ptr = &array[num])
            {
                DiagnosticContext.LocationAndStoreErrorAndProptagRecord *ptr2 = (DiagnosticContext.LocationAndStoreErrorAndProptagRecord *)ptr;
                ptr2->Lid        = DiagnosticContext.AdjustLID(lid.Value, 543162368U);
                ptr2->StoreError = storeError;
                ptr2->PropTag    = propTag;
            }
        }
Ejemplo n.º 6
0
        private static void GetBufferPointer(int size, out byte[] buffer, out int index)
        {
            BipBuffer buffer2 = DiagnosticContext.GetBuffer();

            DiagnosticContext.Shared.GetBufferPointer(buffer2, size, out buffer, out index);
        }