Esempio n. 1
0
 /// <inheritdoc />
 public void Dispose()
 {
     if (this.sdtr != null)
     {
         this.sdtr.Dispose();
         this.sdtr = null;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of a SWF parser.
        /// </summary>
        /// <param name="swfIn">A stream with SWF data to read from.</param>
        /// <param name="binaryDump">Only has an effect in debug builds.</param>
        /// <param name="abcInterceptor">Only has an effect in debug builds.</param>
        /// <param name="dbugConstFilter">Only has an effect in debug builds.</param>
        public SWFReader(
            Stream swfIn,
            SWFReaderOptions options,
            StringBuilder binaryDump,
            IABCLoadInterceptor abcInterceptor)
        {
            this.options = options;
            this.sdtr    = new SWFDataTypeReader(swfIn);
            this.characterUnmarshaller = new Dictionary <int, ICharacter>();
            this.LateClassResolutions  = new Dictionary <string, Timeline>();
            this.doAbcCount            = 0;

#if DEBUG
            this.binaryDump     = binaryDump;
            this.binaryDumpNest = 0;
            this.abcInterceptor = abcInterceptor;
#endif
        }