Provides a cache of unique primitive values when writing a binary plist.
Esempio n. 1
0
        /// <summary>
        /// Resets this instance's state.
        /// </summary>
        private void Reset()
        {
            this.objectTableSize                  =
                this.objectRefCount               =
                    this.objectRefSize            =
                        this.topLevelObjectOffset = 0;

            this.objectRefSize     = 1;
            this.maxObjectRefValue = 255;

            this.objectTable = new List <BinaryPlistItem>();
            this.offsetTable = new List <long>();
            this.uniques     = new UniqueValueCache();
        }
        /// <summary>
        /// Resets this instance's state.
        /// </summary>
        private void Reset()
        {
            this.objectTableSize =
            this.objectRefCount =
            this.objectRefSize =
            this.topLevelObjectOffset = 0;

            this.objectRefSize = 1;
            this.maxObjectRefValue = 255;

            this.objectTable = new List<BinaryPlistItem>();
            this.offsetTable = new List<long>();
            this.uniques = new UniqueValueCache();
        }