Beispiel #1
0
 public EricUdpStream(uint recordLength, uint recordType, BigEndianBinaryReader contentStream)
 {
     RecordLength = recordLength;
     RecordType = recordType;
     FileFormatVersion = contentStream.ReadChars(5);
     PmRecordingRevision = contentStream.ReadChars(5);
     TraceReference = contentStream.ReadChars(6);
     Scanner = contentStream.ReadUInt16();
     Package = contentStream.ReadUInt32();
 }
Beispiel #2
0
 public EricHeader(uint recordLength, uint recordType, BigEndianBinaryReader contentStream)
 {
     RecordLength = recordLength;
     RecordType = recordType;
     FileFormatVersion = contentStream.ReadChars(5);
     PmRecordingRevision = contentStream.ReadChars(((int)RecordLength) - 0x18f);
     Year = contentStream.ReadUInt16();
     Month = contentStream.ReadByte();
     Day = contentStream.ReadByte();
     Hour = contentStream.ReadByte();
     Minute = contentStream.ReadByte();
     Second = contentStream.ReadByte();
     NeUserLabel = contentStream.ReadChars(0x80);
     NeLogicalName = contentStream.ReadChars(0xff);
 }
Beispiel #3
0
 public EricTcpStream(uint recordLength, uint recordType, BigEndianBinaryReader contentStream)
 {
     RecordLength = recordLength;
     RecordType = recordType;
     FileFormatVersion = contentStream.ReadChars(5);
     PmRecordingRevision = contentStream.ReadChars(5);
     Year = contentStream.ReadUInt16();
     Month = contentStream.ReadUInt16();
     Day = contentStream.ReadUInt16();
     Hour = contentStream.ReadUInt16();
     Minute = contentStream.ReadUInt16();
     Second = contentStream.ReadUInt16();
     NeUserLabel = contentStream.ReadChars(0x80);
     NeLogicalName = contentStream.ReadChars(0xff);
     Scanner = contentStream.ReadUInt16();
     CauseOfHeader = contentStream.ReadUInt16();
     NoOfDroppedEvents = contentStream.ReadUInt32();
 }
Beispiel #4
0
 public EricScanner(uint recordLength, uint recordType, BigEndianBinaryReader contentStream)
 {
     RecordLength = recordLength;
     RecordType = recordType;
     Hour = contentStream.ReadByte();
     Minute = contentStream.ReadByte();
     Second = contentStream.ReadUInt16();
     Millisecond = contentStream.ReadUInt16();
     Scannerid = contentStream.ReadUInts(3);
     Status = contentStream.ReadByte();
     PaddingBytes = contentStream.ReadChars(2);
 }
Beispiel #5
0
 private void InitailEvent(uint recordLength, uint recordType, BigEndianBinaryReader _contentStream, Hashtable htEventPm)
 {
     RecordLength = recordLength;
     RecordType = recordType;
     byte[] buffer = _contentStream.ReadBytes(((int)recordLength) - 4);
     recordLength -= 4;
     MemoryStream input = new MemoryStream(buffer);
     BigEndianBinaryReader reader = new BigEndianBinaryReader(input);
     long position = reader.BaseStream.Position;
     long num3;
     EventId = reader.ReadUInts(3);
     _AsnType = htEventPm[(int)EventId] as EricPmEvent;
     TimeStampHour = reader.ReadByte();
     TimeStampMinute = reader.ReadByte();
     TimeStampSecond = reader.ReadByte();
     TimeStampMilliSec = reader.ReadUInt16();
     ScannerId = reader.ReadUInts(3);
     RbsModuleId = reader.ReadByte();
     GlobalCellId = reader.ReadUInt32();
     if (((_AsnType == null) || _AsnType.EventType.Equals("CELL")) || _AsnType.EventType.Equals("RBS"))
     {
         num3 = reader.BaseStream.Position - position;
         UnPaserTraseContent = reader.ReadHex((int)(recordLength - num3));
     }
     else
     {
         EnbS1ApId = reader.ReadUInts(3);
         MmeS1ApId = reader.ReadUInt32();
         Gummei = reader.ReadHex(7);
         RacUeRef = reader.ReadUInt32();
         TraceRecordingSessionReference = reader.ReadUInts(3);
         MessageDirection = reader.ReadByte();
         if (_AsnType.EventType.Equals("UE"))
         {
             num3 = reader.BaseStream.Position - position;
             UnPaserTraseContent = reader.ReadHex((int)(recordLength - num3));
         }
         else
         {
             L3MessageLength = reader.ReadUInt16();
             L3MessageContents = reader.ReadBytes(L3MessageLength);
             num3 = reader.BaseStream.Position - position;
             PaddingBytes = reader.ReadChars((int)(recordLength - num3));
         }
     }
 }