Beispiel #1
0
    public static FrameHeader Read(BinaryReader reader)
    {
      FrameHeader header = new FrameHeader();
			header.ThreadIndex = reader.ReadInt32();
      header.ReadEventData(reader);
      return header;
    }
Beispiel #2
0
        public static FrameHeader Read(DataResponse response)
        {
            FrameHeader header = new FrameHeader();

            header.ThreadIndex = response.Reader.ReadInt32();
            if (response.ApplicationID == NetworkProtocol.OPTICK_APP_ID)
            {
                header.FiberIndex = response.Reader.ReadInt32();
            }

            header.ReadEventData(response.Reader);

            if (response.Version >= NetworkProtocol.NETWORK_PROTOCOL_VERSION_26)
            {
                header.FrameType = (FrameList.Type)response.Reader.ReadInt32();
            }
            else
            {
                header.FrameType = FrameList.Type.None;
            }

            return(header);
        }
Beispiel #3
0
 public EventFrame(FrameHeader header, List <Entry> entries, FrameGroup group) : base(null)
 {
     Init(header, entries, group);
 }