public void Serialize(EndianWriter bw) { bw.WriteLE(PreviousSequence); bw.WriteLE(Unknown1); bw.WriteLE(Unknown2); bw.WriteLE((ushort)OpCode); }
internal override void SerializeStreamer(EndianWriter writer) { writer.WriteLE(Flags); writer.WriteLE(FrameId); writer.WriteLE(Timestamp); writer.WriteUInt32LEPrefixedBlob(Data); }
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); }
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); }
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); } }
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); } }
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); }
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); }
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); }
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); } }
internal override void SerializeStreamer(EndianWriter writer) { writer.WriteLE(AckedFrame); }
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); }
internal override void SerializeStreamer(EndianWriter writer) { writer.WriteLE((uint)Flags); }
internal override void SerializeStreamer(EndianWriter writer) { writer.WriteLE(MaxTouches); writer.WriteLE(ReferenceTimestamp); }
public void Serialize(EndianWriter writer) { writer.WriteLE((uint)Type); SerializeData(writer); }
internal override void SerializeData(EndianWriter writer) { writer.WriteLE(Flags); }
internal override void SerializeStreamer(EndianWriter writer) { writer.WriteLE(InitialFrameId); ((ISerializable)RequestedFormat).Serialize(writer); }