Ejemplo n.º 1
0
        private void PushState(
            ObjectReaderState state)
        {
            if (null == state)
            {
                throw new ArgumentNullException("state");
            }

            this._state.Push(state);
        }
Ejemplo n.º 2
0
        public override IObject <ObjectData> Read(Package package, ObjectReaderState readerState, BinaryReader reader)
        {
            var       newFrontendObject = FrontendObject;
            TagStream tagStream         = new ObjectTagStream(reader, readerState.CurrentChunkBlock,
                                                              readerState.CurrentChunkBlock.Size);

            while (tagStream.HasTag())
            {
                var tag = tagStream.NextTag(newFrontendObject);
                newFrontendObject = ProcessTag(package, newFrontendObject, tag);
            }

            return(newFrontendObject);
        }
Ejemplo n.º 3
0
        public override FrontendObject Read(FrontendPackage package, ObjectReaderState readerState, BinaryReader reader)
        {
            FrontendObject    newFrontendObject = FrontendObject;
            FrontendTagStream tagStream         = new FrontendObjectTagStream(reader, readerState.CurrentChunkBlock, readerState.CurrentChunkBlock.Size);

            while (tagStream.HasTag())
            {
                FrontendTag tag = tagStream.NextTag(newFrontendObject);
                //Debug.WriteLine("OBJECT TAG {0}", tag);
                newFrontendObject = ProcessTag(newFrontendObject, tag);
            }

            return(newFrontendObject);
        }
Ejemplo n.º 4
0
        public override IObject <ObjectData> Read(Package package, ObjectReaderState readerState, BinaryReader reader)
        {
            var tagStream = new ScriptTagStream(reader, readerState.CurrentChunkBlock,
                                                readerState.CurrentChunkBlock.Size);
            var script = new Script();

            while (tagStream.HasTag())
            {
                var tag = tagStream.NextTag(FrontendObject, script);
                ProcessTag(script, tag);
            }

            FrontendObject.Scripts.Add(script);

            return(FrontendObject);
        }
Ejemplo n.º 5
0
        public override FrontendObject Read(FrontendPackage package, ObjectReaderState readerState, BinaryReader reader)
        {
            FrontendScriptTagStream tagStream = new FrontendScriptTagStream(reader, readerState.CurrentChunkBlock, readerState.CurrentChunkBlock.Size);
            FrontendScript          script    = new FrontendScript();

            while (tagStream.HasTag())
            {
                FrontendTag tag = tagStream.NextTag(FrontendObject, script);
                //Debug.WriteLine("SCRIPT TAG {0}", tag);
                ProcessTag(FrontendObject, script, tag);
            }

            //Debug.WriteLine("ADD SCRIPT: id={0:X8}", script.Id);
            FrontendObject.Scripts.Add(script);

            return(FrontendObject);
        }
Ejemplo n.º 6
0
 private void SetState(
     ObjectReaderState state)
 {
     PopState();
     PushState(state);
 }
Ejemplo n.º 7
0
 private void SetState(
     ObjectReaderState state)
 {
     this._state.Set(state);
 }
Ejemplo n.º 8
0
 private void PushState(
     ObjectReaderState state)
 {
     this._state.Push(state);
 }
Ejemplo n.º 9
0
 public override FrontendObject Read(FrontendPackage package, ObjectReaderState readerState, BinaryReader reader)
 {
     return(readerState.ChunkReader.ReadFrontendObjectChunks(FrontendObject, readerState.CurrentChunkBlock.Size));
 }
Ejemplo n.º 10
0
 private void SetState(
     ObjectReaderState state)
 {
     PopState();
     PushState(state);
 }
Ejemplo n.º 11
0
        private void PushState(
            ObjectReaderState state)
        {
            if (null == state)
            {
                throw new ArgumentNullException("state");
            }

            this._state.Push(state);
        }
 public override IObject<ObjectData> Read(Package package, ObjectReaderState readerState, BinaryReader reader)
 {
     return readerState.ChunkReader.ReadFrontendObjectChunks(FrontendObject, readerState.CurrentChunkBlock.Size);
 }