Example #1
0
 // Token: 0x0600532E RID: 21294 RVA: 0x00124624 File Offset: 0x00122824
 private IntSizedArray(IntSizedArray sizedArray)
 {
     this.objects = new int[sizedArray.objects.Length];
     sizedArray.objects.CopyTo(this.objects, 0);
     this.negObjects = new int[sizedArray.negObjects.Length];
     sizedArray.negObjects.CopyTo(this.negObjects, 0);
 }
Example #2
0
 private IntSizedArray(IntSizedArray sizedArray)
 {
     _objects = new int[sizedArray._objects.Length];
     sizedArray._objects.CopyTo(_objects, 0);
     _negObjects = new int[sizedArray._negObjects.Length];
     sizedArray._negObjects.CopyTo(_negObjects, 0);
 }
Example #3
0
        // Assigns an internal ID associated with the binary id number
        internal long GetId(long objectId)
        {
            if (!_fullDeserialization)
            {
                InitFullDeserialization();
            }

            if (objectId > 0)
            {
                return(objectId);
            }

            if (_oldFormatDetected || objectId == -1)
            {
                // Alarm bells. This is an old format. Deal with it.
                _oldFormatDetected = true;
                if (_valTypeObjectIdTable == null)
                {
                    _valTypeObjectIdTable = new IntSizedArray();
                }

                long tempObjId = 0;
                if ((tempObjId = _valTypeObjectIdTable[(int)objectId]) == 0)
                {
                    tempObjId = ThresholdForValueTypeIds + objectId;
                    _valTypeObjectIdTable[(int)objectId] = (int)tempObjId;
                }
                return(tempObjId);
            }

            return(-1 * objectId);
        }
Example #4
0
 private IntSizedArray(IntSizedArray sizedArray)
 {
     objects = new int[sizedArray.objects.Length];
     sizedArray.objects.CopyTo(objects, 0);
     negObjects = new int[sizedArray.negObjects.Length];
     sizedArray.negObjects.CopyTo(negObjects, 0);
 }
Example #5
0
        internal long GetId(long objectId)
        {
            if (!this.bFullDeserialization)
            {
                this.InitFullDeserialization();
            }
            if (objectId > 0L)
            {
                return(objectId);
            }
            if (!this.bOldFormatDetected && (objectId != -1L))
            {
                return(-1L * objectId);
            }
            this.bOldFormatDetected = true;
            if (this.valTypeObjectIdTable == null)
            {
                this.valTypeObjectIdTable = new IntSizedArray();
            }
            long num = 0L;

            num = this.valTypeObjectIdTable[(int)objectId];
            if (num == 0L)
            {
                num = 0x7fffffffL + objectId;
                this.valTypeObjectIdTable[(int)objectId] = (int)num;
            }
            return(num);
        }
 private IntSizedArray(IntSizedArray sizedArray)
 {
     this.objects = new int[0x10];
     this.negObjects = new int[4];
     this.objects = new int[sizedArray.objects.Length];
     sizedArray.objects.CopyTo(this.objects, 0);
     this.negObjects = new int[sizedArray.negObjects.Length];
     sizedArray.negObjects.CopyTo(this.negObjects, 0);
 }
 internal long GetId(long objectId)
 {
     if (!this.bFullDeserialization)
     {
         this.InitFullDeserialization();
     }
     if (objectId > 0L)
     {
         return objectId;
     }
     if (!this.bOldFormatDetected && (objectId != -1L))
     {
         return (-1L * objectId);
     }
     this.bOldFormatDetected = true;
     if (this.valTypeObjectIdTable == null)
     {
         this.valTypeObjectIdTable = new IntSizedArray();
     }
     long num = 0L;
     num = this.valTypeObjectIdTable[(int) objectId];
     if (num == 0L)
     {
         num = 0x7fffffffL + objectId;
         this.valTypeObjectIdTable[(int) objectId] = (int) num;
     }
     return num;
 }
 private IntSizedArray(IntSizedArray sizedArray)
 {
     _objects = new int[sizedArray._objects.Length];
     sizedArray._objects.CopyTo(_objects, 0);
     _negObjects = new int[sizedArray._negObjects.Length];
     sizedArray._negObjects.CopyTo(_negObjects, 0);
 }
Example #9
0
        internal long GetId(long objectId)
        {

            if (!bFullDeserialization)
                InitFullDeserialization();


            if (objectId > 0)
                return objectId;
            
            if (bOldFormatDetected || objectId == -1)
            {
                // Alarm bells. This is an old format. Deal with it.
                bOldFormatDetected = true;
                if (valTypeObjectIdTable == null)
                    valTypeObjectIdTable = new IntSizedArray();

                long tempObjId = 0;
                if ((tempObjId = valTypeObjectIdTable[(int)objectId]) == 0)
                {
                    tempObjId = THRESHOLD_FOR_VALUETYPE_IDS + objectId;
                    valTypeObjectIdTable[(int)objectId] = (int)tempObjId;
                }
                return tempObjId;
            }
            return -1 * objectId;
        }
 private IntSizedArray(IntSizedArray sizedArray)
 {
     objects = new int[sizedArray.objects.Length];
     sizedArray.objects.CopyTo(objects, 0); 
     negObjects = new int[sizedArray.negObjects.Length];
     sizedArray.negObjects.CopyTo(negObjects, 0); 
 } 
Example #11
0
        // Assigns an internal ID associated with the binary id number
        internal long GetId(long objectId)
        {
            if (!_fullDeserialization)
            {
                InitFullDeserialization();
            }

            if (objectId > 0)
            {
                return objectId;
            }

            if (_oldFormatDetected || objectId == -1)
            {
                // Alarm bells. This is an old format. Deal with it.
                _oldFormatDetected = true;
                if (_valTypeObjectIdTable == null)
                {
                    _valTypeObjectIdTable = new IntSizedArray();
                }

                long tempObjId = 0;
                if ((tempObjId = _valTypeObjectIdTable[(int)objectId]) == 0)
                {
                    tempObjId = ThresholdForValueTypeIds + objectId;
                    _valTypeObjectIdTable[(int)objectId] = (int)tempObjId;
                }
                return tempObjId;
            }

            return -1 * objectId;
        }