Ejemplo n.º 1
0
            public BALPacketDelete(int packetSize, byte[] packetData)
            {
                mpHeap  = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 0));
                mpBlock = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 4));

                mContext.frompacket(packetSize, packetData, 8);
            }
Ejemplo n.º 2
0
 public BALPacketVersion(int packetSize, byte[] packetData)
 {
     mVersion        = Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 0));
     mXEXChecksum    = Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 4));
     mXEXBaseAddress = Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 8));
     mTimerFreq      = Xbox_EndianSwap.endSwapI64(BitConverter.ToInt64(packetData, 12));
 }
Ejemplo n.º 3
0
            public BALPacketResize(int packetSize, byte[] packetData)
            {
                mpHeap      = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 0));
                mpOrigBlock = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 4));
                mNewSize    = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 8));
                mpNewBlock  = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 12));

                mContext.frompacket(packetSize, packetData, 16);
            }
Ejemplo n.º 4
0
            public void frompacket(int packetSize, byte[] packetData, int startByte)
            {
                mThreadIndex = packetData[startByte];
                startByte++;
                mBackTraceSize = packetData[startByte];
                startByte++;

                mTime      = Xbox_EndianSwap.endSwapI64((Int64)BitConverter.ToUInt64(packetData, startByte));
                startByte += 8;

                for (int i = 0; i < (int)eFlags.cMaxBackTrace; i++)
                {
                    mBackTrace[i] = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, startByte));
                    startByte    += 4;
                }
            }
Ejemplo n.º 5
0
            public BALPacketRegisterHeap(int packetSize, byte[] packetData)
            {
                mPtr   = (uint)Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 0));
                mFlags = Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 4));

                int plus = 8;

                StringBuilder sb = new StringBuilder();

                for (int i = 0; i < 32; i++)
                {
                    char ch = (char)packetData[i + plus];
                    if (ch == '\0')
                    {
                        break;
                    }
                    sb.Append(ch);
                }

                mName = sb.ToString();
            }
Ejemplo n.º 6
0
 public BALPacketFrame(int packetSize, byte[] packetData)
 {
     mIndex = Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 0));
     mTime  = Xbox_EndianSwap.endSwapI64(BitConverter.ToInt64(packetData, 4));
 }
Ejemplo n.º 7
0
 public BALPacketSnapshot(int packetSize, byte[] packetData)
 {
     mIndex = Xbox_EndianSwap.endSwapI32(BitConverter.ToInt32(packetData, 0));
 }