public override void Deserialize(BEReader reader)
        {
            Configuration = new ConsoleConfiguration();
            ((ISerializable)Configuration).Deserialize(reader);

            ActiveTitles = reader.ReadUInt16PrefixedArray <ActiveTitle>();
        }
        public void Deserialize(BEReader reader)
        {
            CryptoKey        = reader.ReadUInt16PrefixedBlob();
            ServerInitVector = reader.ReadUInt16PrefixedBlob();
            ClientInitVector = reader.ReadUInt16PrefixedBlob();
            SignHash         = reader.ReadUInt16PrefixedBlob();

            Endpoints = reader.ReadUInt16PrefixedArray <AuxiliaryStreamEndpoint>();
        }
 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>();
 }
        public override void Deserialize(BEReader reader)
        {
            State = new MediaState();

            State.TitleId         = reader.ReadUInt32();
            State.AumId           = reader.ReadUInt16PrefixedString();
            State.AssetId         = reader.ReadUInt16PrefixedString();
            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.ReadUInt16PrefixedArray <MediaMetadata>()
                .ToDictionary(entry => entry.Name, entry => entry.Value));
        }
Ejemplo n.º 5
0
 public override void Deserialize(BEReader reader)
 {
     Timestamp   = reader.ReadUInt32();
     Touchpoints = reader.ReadUInt16PrefixedArray <TouchPoint>();
 }