示例#1
0
 public void Deserialize(LEReader br)
 {
     Flags     = br.ReadUInt32();
     FrameId   = br.ReadUInt32();
     Timestamp = br.ReadInt64();
     Data      = br.ReadBlobUInt32();
 }
 public void Deserialize(LEReader br)
 {
     ProtocolVersion = br.ReadUInt32();
     DesktopWidth    = br.ReadUInt32();
     DesktopHeight   = br.ReadUInt32();
     MaxTouches      = br.ReadUInt32();
     InitialFrameId  = br.ReadUInt32();
 }
示例#3
0
 public void Deserialize(LEReader br)
 {
     ProtocolVersion    = br.ReadUInt32();
     Width              = br.ReadUInt32();
     Height             = br.ReadUInt32();
     FPS                = br.ReadUInt32();
     ReferenceTimestamp = br.ReadUInt64();
     Formats            = br.ReadArrayUInt32 <VideoFormat>();
 }
示例#4
0
 public void Deserialize(LEReader br)
 {
     Flags       = br.ReadUInt32();
     FrameId     = br.ReadUInt32();
     Timestamp   = br.ReadInt64();
     TotalSize   = br.ReadUInt32();
     PacketCount = br.ReadUInt32();
     Offset      = br.ReadUInt32();
     Data        = br.ReadBlobUInt32();
 }
示例#5
0
 public void Deserialize(LEReader br)
 {
     Channels   = br.ReadUInt32();
     SampleRate = br.ReadUInt32();
     Codec      = (AudioCodec)br.ReadUInt32();
     if (Codec == AudioCodec.PCM)
     {
         SampleSize = br.ReadUInt32();
         SampleType = br.ReadUInt32();
     }
 }
示例#6
0
 public void Deserialize(LEReader br)
 {
     PreviousSequence = br.ReadUInt32();
     Unknown1         = br.ReadUInt16();
     Unknown2         = br.ReadUInt16();
     OpCode           = (ControlOpCode)br.ReadUInt16();
 }
        public void Deserialize(LEReader br)
        {
            Flags = (StreamerFlags)br.ReadUInt32();
            if (Flags.HasFlag(StreamerFlags.GotSeqAndPrev))
            {
                SequenceNumber         = br.ReadUInt32();
                PreviousSequenceNumber = br.ReadUInt32();
            }
            PacketType = br.ReadUInt32();
            if (PacketType != 0)
            {
                PacketSize = br.ReadUInt32();
            }

            RawData = br.ReadToEnd();
        }
 public void Deserialize(LEReader br)
 {
     FPS    = br.ReadUInt32();
     Width  = br.ReadUInt32();
     Height = br.ReadUInt32();
     Codec  = (VideoCodec)br.ReadUInt32();
     if (Codec == VideoCodec.RGB)
     {
         Bpp       = br.ReadUInt32();
         Bytes     = br.ReadUInt32();
         RedMask   = br.ReadUInt32();
         GreenMask = br.ReadUInt32();
         BlueMask  = br.ReadUInt32();
     }
 }
        public void Deserialize(LEReader br)
        {
            Flags = (VideoControlFlags)br.ReadUInt32();

            if (Flags.HasFlag(VideoControlFlags.LastDisplayedFrame))
            {
                LastDisplayedFrameId = br.ReadUInt32();
                Timestamp            = br.ReadInt64();
            }
            if (Flags.HasFlag(VideoControlFlags.QueueDepth))
            {
                QueueDepth = br.ReadUInt32();
            }
            if (Flags.HasFlag(VideoControlFlags.LostFrames))
            {
                FirstLostFrame = br.ReadUInt32();
                LastLostFrame  = br.ReadUInt32();
            }
        }
        public void Deserialize(LEReader br)
        {
            FrameId          = br.ReadUInt32();
            Timestamp        = br.ReadUInt64();
            CreatedTimestamp = br.ReadUInt64();

            Buttons.Deserialize(br);
            Analog.Deserialize(br);
            Extension.Deserialize(br);
        }
示例#11
0
 public void Deserialize(LEReader br)
 {
     Type = (ChannelControlType)br.ReadUInt32();
     Data = CreateFromControlType(Type);
     Data.Deserialize(br);
 }
 public void Deserialize(LEReader br)
 {
     AckedFrame = br.ReadUInt32();
 }
 public void Deserialize(LEReader br)
 {
     Flags = br.ReadUInt32();
 }
示例#14
0
 public void Deserialize(LEReader br)
 {
     Flags = (AudioControlFlags)br.ReadUInt32();
 }
 public void Deserialize(LEReader br)
 {
     ProtocolVersion    = br.ReadUInt32();
     ReferenceTimestamp = br.ReadUInt64();
     Formats            = br.ReadArrayUInt32 <AudioFormat>();
 }
示例#16
0
 public void Deserialize(LEReader br)
 {
     byte[] name = br.ReadBlobUInt16();
     Name  = Encoding.GetEncoding("utf-8").GetString(name);
     Flags = br.ReadUInt32();
 }
示例#17
0
 public void Deserialize(LEReader br)
 {
     InitialFrameId = br.ReadUInt32();
     RequestedFormat.Deserialize(br);
 }
 public void Deserialize(LEReader br)
 {
     MaxTouches         = br.ReadUInt32();
     ReferenceTimestamp = br.ReadUInt64();
 }