public void Serialize(EndianWriter bw)
 {
     bw.WriteLE(PreviousSequence);
     bw.WriteLE(Unknown1);
     bw.WriteLE(Unknown2);
     bw.WriteLE((ushort)OpCode);
 }
Ejemplo n.º 2
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(Flags);
     writer.WriteLE(FrameId);
     writer.WriteLE(Timestamp);
     writer.WriteUInt32LEPrefixedBlob(Data);
 }
Ejemplo n.º 3
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(ProtocolVersion);
     writer.WriteLE(DesktopWidth);
     writer.WriteLE(DesktopHeight);
     writer.WriteLE(MaxTouches);
     writer.WriteLE(InitialFrameId);
 }
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(ProtocolVersion);
     writer.WriteLE(Width);
     writer.WriteLE(Height);
     writer.WriteLE(FPS);
     writer.WriteLE(ReferenceTimestamp);
     writer.WriteUInt32LEPrefixedArray(Formats);
 }
 public void Serialize(EndianWriter bw)
 {
     bw.WriteLE((uint)Flags);
     if (Flags.HasFlag(StreamerFlags.GotSeqAndPrev))
     {
         bw.WriteLE(SequenceNumber);
         bw.WriteLE(PreviousSequenceNumber);
     }
     bw.WriteLE(PacketType);
 }
Ejemplo n.º 6
0
        internal override void SerializeStreamer(EndianWriter writer)
        {
            writer.WriteLE(FrameId);
            writer.WriteLE(Timestamp);
            writer.WriteLE(CreatedTimestamp);

            ((ISerializable)Buttons).Serialize(writer);
            ((ISerializable)Analog).Serialize(writer);
            ((ISerializable)Extension).Serialize(writer);
        }
Ejemplo n.º 7
0
 void ISerializable.Serialize(EndianWriter writer)
 {
     writer.WriteLE(Channels);
     writer.WriteLE(SampleRate);
     writer.WriteLE((uint)Codec);
     if (Codec == AudioCodec.PCM)
     {
         writer.WriteLE(SampleSize);
         writer.WriteLE(SampleType);
     }
 }
Ejemplo n.º 8
0
 internal override void SerializeData(EndianWriter writer)
 {
     if (Flags != null && Flags.Length > 0)
     {
         writer.WriteLE((uint)Flags.Length);
         writer.Write(Flags);
     }
     else
     {
         writer.WriteLE((uint)0);
     }
 }
Ejemplo n.º 9
0
 void ISerializable.Serialize(EndianWriter writer)
 {
     writer.Write(LeftTrigger);
     writer.Write(RightTrigger);
     writer.WriteLE(LeftThumbX);
     writer.WriteLE(LeftThumbY);
     writer.WriteLE(RightThumbX);
     writer.WriteLE(RightThumbY);
     writer.Write(RumbleTriggerL);
     writer.Write(RumbleTriggerR);
     writer.Write(RumbleHandleL);
     writer.Write(RumbleHandleR);
 }
Ejemplo n.º 10
0
 void ISerializable.Serialize(EndianWriter writer)
 {
     writer.WriteLE(FPS);
     writer.WriteLE(Width);
     writer.WriteLE(Height);
     writer.WriteLE((uint)Codec);
     if (Codec == VideoCodec.RGB)
     {
         writer.WriteLE(Bpp);
         writer.WriteLE(Bytes);
         writer.WriteLE(RedMask);
         writer.WriteLE(GreenMask);
         writer.WriteLE(BlueMask);
     }
 }
        public void Serialize(EndianWriter writer)
        {
            // Write out payload first to get its size
            EndianWriter tmpWriter = new EndianWriter();

            SerializeStreamer(tmpWriter);
            byte[] streamerData = tmpWriter.ToBytes();
            StreamerSize = (uint)streamerData.Length;

            StreamerHeader.Serialize(writer);
            writer.WriteLE(StreamerSize);
            writer.Write(streamerData);
        }
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(Unknown1);
     writer.WriteLE(Unknown2);
     writer.WriteLE(Unknown3);
     writer.WriteLE(Unknown4);
     writer.WriteLE(Unknown5);
     writer.WriteLE(Unknown6);
 }
Ejemplo n.º 13
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(Flags);
     writer.WriteLE(FrameId);
     writer.WriteLE(Timestamp);
     writer.WriteLE(TotalSize);
     writer.WriteLE(PacketCount);
     writer.WriteLE(Offset);
     writer.WriteUInt32LEPrefixedBlob(Data);
 }
Ejemplo n.º 14
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE((uint)Flags);
     if (Flags.HasFlag(VideoControlFlags.LastDisplayedFrame))
     {
         writer.WriteLE(LastDisplayedFrameId);
         writer.WriteLE(Timestamp);
     }
     if (Flags.HasFlag(VideoControlFlags.QueueDepth))
     {
         writer.WriteLE(QueueDepth);
     }
     if (Flags.HasFlag(VideoControlFlags.LostFrames))
     {
         writer.WriteLE(FirstLostFrame);
         writer.WriteLE(LastLostFrame);
     }
 }
Ejemplo n.º 15
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(AckedFrame);
 }
Ejemplo n.º 16
0
 internal override void SerializeData(EndianWriter writer)
 {
     byte[] name = Encoding.GetEncoding("utf-8").GetBytes(Name);
     writer.WriteUInt16LEPrefixedBlob(name);
     writer.WriteLE(Flags);
 }
 public void Serialize(EndianWriter bw)
 {
     bw.Write((byte)Type);
     bw.WriteLE(ConnectionId);
 }
Ejemplo n.º 18
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE((uint)Flags);
 }
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(MaxTouches);
     writer.WriteLE(ReferenceTimestamp);
 }
Ejemplo n.º 20
0
 public void Serialize(EndianWriter writer)
 {
     writer.WriteLE((uint)Type);
     SerializeData(writer);
 }
Ejemplo n.º 21
0
 internal override void SerializeData(EndianWriter writer)
 {
     writer.WriteLE(Flags);
 }
Ejemplo n.º 22
0
 internal override void SerializeStreamer(EndianWriter writer)
 {
     writer.WriteLE(InitialFrameId);
     ((ISerializable)RequestedFormat).Serialize(writer);
 }