Пример #1
0
 void ISerializable.Deserialize(BEReader reader)
 {
     Id     = reader.ReadUInt32();
     Action = (TouchAction)reader.ReadUInt16();
     PointX = reader.ReadUInt32();
     PointY = reader.ReadUInt32();
 }
Пример #2
0
 public override void Deserialize(BEReader reader)
 {
     TextSessionId = reader.ReadUInt32();
     TextVersion   = reader.ReadUInt32();
     Flags         = reader.ReadUInt32();
     Result        = (TextResult)reader.ReadUInt32();
 }
 public override void Deserialize(BEReader reader)
 {
     TextSessionId     = reader.ReadUInt64();
     TextBufferVersion = reader.ReadUInt32();
     Start             = reader.ReadUInt32();
     Length            = reader.ReadUInt32();
 }
 void ISerializable.Deserialize(BEReader reader)
 {
     LiveTVProvider = reader.ReadUInt32();
     MajorVersion   = reader.ReadUInt32();
     MinorVersion   = reader.ReadUInt32();
     BuildNumber    = reader.ReadUInt32();
     Locale         = reader.ReadString();
 }
Пример #5
0
 protected override void DeserializePayload(BEReader reader)
 {
     Flags       = (DeviceFlags)reader.ReadUInt32();
     DeviceType  = (DeviceType)reader.ReadUInt16();
     Name        = reader.ReadString();
     HardwareId  = Guid.Parse(reader.ReadString());
     LastError   = reader.ReadUInt32();
     Certificate = CryptoExtensions.DeserializeCertificateAsn(reader.ReadBlob());
 }
 public override void Deserialize(BEReader reader)
 {
     TextSessionId     = reader.ReadUInt64();
     TextBufferVersion = reader.ReadUInt32();
     TextOptions       = (TextOption)reader.ReadUInt32();
     InputScope        = (TextInputScope)reader.ReadUInt32();
     MaxTextLength     = reader.ReadUInt32();
     Locale            = reader.ReadString();
     Prompt            = reader.ReadString();
 }
 public override void Deserialize(BEReader reader)
 {
     TextSessionId       = reader.ReadUInt32();
     BaseVersion         = reader.ReadUInt32();
     SubmittedVersion    = reader.ReadUInt32();
     TotalTextBytelength = reader.ReadUInt32();
     SelectionStart      = reader.ReadInt32();
     SelectionLength     = reader.ReadInt32();
     Flags = reader.ReadUInt16();
     TextChunkByteStart = reader.ReadUInt32();
     TextChunk          = reader.ReadUInt16PrefixedString();
     Delta = reader.ReadUInt16PrefixedArray <TextDelta>();
 }
Пример #8
0
 public override void Deserialize(BEReader reader)
 {
     TextSessionId     = reader.ReadUInt64();
     TextBufferVersion = reader.ReadUInt32();
     Result            = (TextResult)reader.ReadUInt16();
     Text = reader.ReadUInt16PrefixedString();
 }
 protected override void DeserializePayload(BEReader reader)
 {
     Flags      = reader.ReadUInt32();
     DeviceType = (DeviceType)reader.ReadUInt16();
     MinVersion = reader.ReadUInt16();
     MaxVersion = reader.ReadUInt16();
 }
        public void Deserialize(BEReader reader)
        {
            Type                = (MessageType)reader.ReadUInt16();
            PayloadLength       = reader.ReadUInt16();
            SequenceNumber      = reader.ReadUInt32();
            TargetParticipantId = reader.ReadUInt32();
            SourceParticipantId = reader.ReadUInt32();

            var typeInfo = reader.ReadUInt16();

            SessionMessageType = (SessionMessageType)(typeInfo & 0xFFF);
            IsFragment         = (typeInfo & (1 << 12)) != 0;
            RequestAcknowledge = (typeInfo & (1 << 13)) != 0;
            Version            = (ushort)((typeInfo >> 14) & 0xF);

            ChannelId = reader.ReadUInt64();
        }
        public override void Deserialize(BEReader reader)
        {
            State = new MediaState();

            State.TitleId         = reader.ReadUInt32();
            State.AumId           = reader.ReadString();
            State.AssetId         = reader.ReadString();
            State.MediaType       = (MediaType)reader.ReadUInt16();
            State.SoundLevel      = (MediaSoundLevel)reader.ReadUInt16();
            State.EnabledCommands = (MediaControlCommands)reader.ReadUInt32();
            State.PlaybackStatus  = (MediaPlaybackStatus)reader.ReadUInt16();
            State.PlaybackRate    = reader.ReadSingle();
            State.Position        = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MediaStart      = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MediaEnd        = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MinimumSeek     = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MaximumSeek     = TimeSpan.FromTicks((long)reader.ReadUInt64());

            State.Metadata = new ReadOnlyDictionary <string, string>(
                reader.ReadArray <MediaMetadata>().ToDictionary(entry => entry.Name, entry => entry.Value));
        }
Пример #12
0
        void ISerializable.Deserialize(BEReader reader)
        {
            TitleId = reader.ReadUInt32();

            // This is weird:
            HasFocus      = reader.ReadByte() == 128;
            TitleLocation = (ActiveTitleLocation)reader.ReadByte();

            ProductId = new Guid(reader.ReadBytes(16));
            SandboxId = new Guid(reader.ReadBytes(16));

            AumId = reader.ReadString();
        }
        void ISerializable.Deserialize(BEReader reader)
        {
            TitleId = reader.ReadUInt32();

            ushort titleDisposition = reader.ReadUInt16();

            HasFocus      = (titleDisposition & 0x8000) == 0x8000;
            TitleLocation = (ActiveTitleLocation)(titleDisposition & 0x7FFF);

            ProductId = new Guid(reader.ReadBytes(16));
            SandboxId = new Guid(reader.ReadBytes(16));

            AumId = reader.ReadUInt16PrefixedString();
        }
Пример #14
0
        public void Deserialize(BEReader reader)
        {
            var flags = reader.ReadUInt16();

            Version     = (flags & 0xC000) >> 14;
            Padding     = (flags & 0x2000) != 0;
            Extension   = (flags & 0x1000) != 0;
            CsrcCount   = (flags & 0xF00) >> 8;
            Marker      = (flags & 0x80) != 0;
            PayloadType = (RtpPayloadType)((flags) & 0x7F);

            SequenceNumber = reader.ReadUInt16();
            Timestamp      = reader.ReadUInt32();
            ConnectionId   = reader.ReadUInt16();
            ChannelId      = reader.ReadUInt16();
        }
Пример #15
0
 public override void Deserialize(BEReader reader)
 {
     RequestId = reader.ReadUInt64();
     Result    = reader.ReadUInt32();
 }
 public override void Deserialize(BEReader reader)
 {
     TextSessionId  = reader.ReadUInt32();
     TextVersionAck = reader.ReadUInt32();
 }
Пример #17
0
 public override void Deserialize(BEReader reader)
 {
     TitleId = reader.ReadUInt32();
 }
Пример #18
0
 public override void Deserialize(BEReader reader)
 {
     Timestamp   = reader.ReadUInt32();
     Touchpoints = reader.ReadArray <TouchPoint>();
 }
Пример #19
0
 public void Deserialize(BEReader reader)
 {
     Offset        = reader.ReadUInt32();
     DeleteCount   = reader.ReadUInt32();
     InsertContent = reader.ReadUInt16PrefixedString();
 }
 public void TestUInt32()
 {
     Assert.AreEqual(0x4000000, _reader.ReadUInt32());
 }
Пример #21
0
 public override void Deserialize(BEReader reader)
 {
     ChannelRequestId = reader.ReadUInt32();
     TitleId          = reader.ReadUInt32();
 }
Пример #22
0
 protected override void DeserializeProtectedPayload(BEReader reader)
 {
     Result        = (ConnectionResult)reader.ReadUInt16();
     PairingState  = (PairedIdentityState)reader.ReadUInt16();
     ParticipantId = reader.ReadUInt32();
 }
Пример #23
0
 public override void Deserialize(BEReader reader)
 {
     LowWatermark  = reader.ReadUInt32();
     ProcessedList = new HashSet <uint>(reader.ReadUInt32Array());
     RejectedList  = new HashSet <uint>(reader.ReadUInt32Array());
 }
 public override void Deserialize(BEReader reader)
 {
     SequenceBegin = reader.ReadUInt32();
     SequenceEnd   = reader.ReadUInt32();
     Data          = reader.ReadBlob();
 }
Пример #25
0
 public void TestUInt32()
 {
     Assert.Equal <uint>(0x4000000, _reader.ReadUInt32());
 }