Exemplo n.º 1
0
        internal void Init()
        {
            _isInitial = false;
            _count = 0;
            _expectedType = BinaryTypeEnum.ObjectUrt;
            _expectedTypeInformation = null;

            _name = null;
            _objectTypeEnum = InternalObjectTypeE.Empty;
            _memberTypeEnum = InternalMemberTypeE.Empty;
            _memberValueEnum = InternalMemberValueE.Empty;
            _dtType = null;

            // Array Information
            _numItems = 0;

            //binaryTypeEnum
            _typeInformation = null;

            // Member Information
            _memberLength = 0;
            _binaryTypeEnumA = null;
            _typeInformationA = null;
            _memberNames = null;
            _memberTypes = null;

            _pr.Init();
        }
Exemplo n.º 2
0
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            _parseTypeEnum      = InternalParseTypeE.Empty;
            _objectTypeEnum     = InternalObjectTypeE.Empty;
            _arrayTypeEnum      = InternalArrayTypeE.Empty;
            _memberTypeEnum     = InternalMemberTypeE.Empty;
            _memberValueEnum    = InternalMemberValueE.Empty;
            _objectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            _name = null;

            // Value
            _value = null;

            // dt attribute
            _keyDt      = null;
            _dtType     = null;
            _dtTypeCode = InternalPrimitiveTypeE.Invalid;

            // Object ID
            _objectId = 0;

            // Reference ID
            _idRef = 0;

            // Array

            // Array Element Type
            _arrayElementTypeString = null;
            _arrayElementType       = null;
            _isArrayVariant         = false;
            _arrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;

            // Parsed array information
            _rank        = 0;
            _lengthA     = null;
            _lowerBoundA = null;

            // Array map for placing array elements in array
            _indexMap       = null;
            _memberIndex    = 0;
            _linearlength   = 0;
            _rectangularMap = null;
            _isLowerBound   = false;

            // ValueType Fixup needed
            _isValueTypeFixup = false;

            _newObj         = null;
            _objectA        = null;
            _primitiveArray = null;
            _objectInfo     = null;
            _isRegistered   = false;
            _memberData     = null;
            _si             = null;

            _consecutiveNullArrayEntryCount = 0;
        }
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            _parseTypeEnum = InternalParseTypeE.Empty;
            _objectTypeEnum = InternalObjectTypeE.Empty;
            _arrayTypeEnum = InternalArrayTypeE.Empty;
            _memberTypeEnum = InternalMemberTypeE.Empty;
            _memberValueEnum = InternalMemberValueE.Empty;
            _objectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            _name = null;

            // Value
            _value = null;

            // dt attribute
            _keyDt = null;
            _dtType = null;
            _dtTypeCode = InternalPrimitiveTypeE.Invalid;

            // Object ID
            _objectId = 0;

            // Reference ID
            _idRef = 0;

            // Array

            // Array Element Type
            _arrayElementTypeString = null;
            _arrayElementType = null;
            _isArrayVariant = false;
            _arrayElementTypeCode = InternalPrimitiveTypeE.Invalid;

            // Parsed array information
            _rank = 0;
            _lengthA = null;
            _lowerBoundA = null;

            // Array map for placing array elements in array
            _indexMap = null;
            _memberIndex = 0;
            _linearlength = 0;
            _rectangularMap = null;
            _isLowerBound = false;

            // ValueType Fixup needed
            _isValueTypeFixup = false;

            _newObj = null;
            _objectA = null;
            _primitiveArray = null;
            _objectInfo = null;
            _isRegistered = false;
            _memberData = null;
            _si = null;

            _consecutiveNullArrayEntryCount = 0;
        }
Exemplo n.º 4
0
        internal void Init()
        {
            _isInitial               = false;
            _count                   = 0;
            _expectedType            = BinaryTypeEnum.ObjectUrt;
            _expectedTypeInformation = null;

            _name            = null;
            _objectTypeEnum  = InternalObjectTypeE.Empty;
            _memberTypeEnum  = InternalMemberTypeE.Empty;
            _memberValueEnum = InternalMemberValueE.Empty;
            _dtType          = null;

            // Array Information
            _numItems = 0;

            //binaryTypeEnum
            _typeInformation = null;

            // Member Information
            _memberLength     = 0;
            _binaryTypeEnumA  = null;
            _typeInformationA = null;
            _memberNames      = null;
            _memberTypes      = null;

            _pr.Init();
        }
 internal void Init()
 {
     this.PRparseTypeEnum      = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum     = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum      = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum     = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum    = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname                     = null;
     this.PRnameXmlKey               = null;
     this.PRxmlNameSpace             = null;
     this.PRisParsed                 = false;
     this.PRisProcessAttributes      = false;
     this.PRvalue                    = null;
     this.PRkeyDt                    = null;
     this.PRdtType                   = null;
     this.PRassemblyName             = null;
     this.PRdtTypeCode               = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum                   = false;
     this.PRobjectId                 = 0L;
     this.PRidRef                    = 0L;
     this.PRarrayElementTypeString   = null;
     this.PRarrayElementType         = null;
     this.PRisArrayVariant           = false;
     this.PRarrayElementTypeCode     = InternalPrimitiveTypeE.Invalid;
     this.PRprimitiveArrayTypeString = null;
     this.PRrank                     = 0;
     this.PRlengthA                  = null;
     this.PRpositionA                = null;
     this.PRlowerBoundA              = null;
     this.PRupperBoundA              = null;
     this.PRindexMap                 = null;
     this.PRmemberIndex              = 0;
     this.PRlinearlength             = 0;
     this.PRrectangularMap           = null;
     this.PRisLowerBound             = false;
     this.PRtopId                    = 0L;
     this.PRheaderId                 = 0L;
     this.PRisHeaderRoot             = false;
     this.PRisAttributesProcessed    = false;
     this.PRisMustUnderstand         = false;
     this.PRparseStateEnum           = InternalParseStateE.Initial;
     this.PRisWaitingForNestedObject = false;
     this.PRisValueTypeFixup         = false;
     this.PRnewObj                   = null;
     this.PRobjectA                  = null;
     this.PRprimitiveArray           = null;
     this.PRobjectInfo               = null;
     this.PRisRegistered             = false;
     this.PRisXmlAttribute           = false;
 }
Exemplo n.º 6
0
        private void ParseMemberEnd(ParseRecord pr)
        {
            InternalMemberTypeE prmemberTypeEnum = pr.PRmemberTypeEnum;

            if (prmemberTypeEnum != InternalMemberTypeE.Field)
            {
                if (prmemberTypeEnum == InternalMemberTypeE.Item)
                {
                    this.ParseArrayMemberEnd(pr);
                    return;
                }
                this.ParseError(pr, (ParseRecord)this.stack.Peek());
            }
            else if (pr.PRmemberValueEnum == InternalMemberValueE.Nested)
            {
                this.ParseObjectEnd(pr);
                return;
            }
        }
 internal void Init()
 {
     this.PRparseTypeEnum      = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum     = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum      = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum     = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum    = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname                   = null;
     this.PRvalue                  = null;
     this.PRkeyDt                  = null;
     this.PRdtType                 = null;
     this.PRdtTypeCode             = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum                 = false;
     this.PRobjectId               = 0L;
     this.PRidRef                  = 0L;
     this.PRarrayElementTypeString = null;
     this.PRarrayElementType       = null;
     this.PRisArrayVariant         = false;
     this.PRarrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;
     this.PRrank                   = 0;
     this.PRlengthA                = null;
     this.PRpositionA              = null;
     this.PRlowerBoundA            = null;
     this.PRupperBoundA            = null;
     this.PRindexMap               = null;
     this.PRmemberIndex            = 0;
     this.PRlinearlength           = 0;
     this.PRrectangularMap         = null;
     this.PRisLowerBound           = false;
     this.PRtopId                  = 0L;
     this.PRheaderId               = 0L;
     this.PRisValueTypeFixup       = false;
     this.PRnewObj                 = null;
     this.PRobjectA                = null;
     this.PRprimitiveArray         = null;
     this.PRobjectInfo             = null;
     this.PRisRegistered           = false;
     this.PRmemberData             = null;
     this.PRsi        = null;
     this.PRnullCount = 0;
 }
 internal void Init()
 {
     this.PRparseTypeEnum = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname = null;
     this.PRvalue = null;
     this.PRkeyDt = null;
     this.PRdtType = null;
     this.PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum = false;
     this.PRobjectId = 0L;
     this.PRidRef = 0L;
     this.PRarrayElementTypeString = null;
     this.PRarrayElementType = null;
     this.PRisArrayVariant = false;
     this.PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRrank = 0;
     this.PRlengthA = null;
     this.PRpositionA = null;
     this.PRlowerBoundA = null;
     this.PRupperBoundA = null;
     this.PRindexMap = null;
     this.PRmemberIndex = 0;
     this.PRlinearlength = 0;
     this.PRrectangularMap = null;
     this.PRisLowerBound = false;
     this.PRtopId = 0L;
     this.PRheaderId = 0L;
     this.PRisValueTypeFixup = false;
     this.PRnewObj = null;
     this.PRobjectA = null;
     this.PRprimitiveArray = null;
     this.PRobjectInfo = null;
     this.PRisRegistered = false;
     this.PRmemberData = null;
     this.PRsi = null;
     this.PRnullCount = 0;
 }
 internal void Init()
 {
     this.isInitial               = false;
     this.count                   = 0;
     this.expectedType            = BinaryTypeEnum.ObjectUrt;
     this.expectedTypeInformation = null;
     this.name             = null;
     this.objectTypeEnum   = InternalObjectTypeE.Empty;
     this.memberTypeEnum   = InternalMemberTypeE.Empty;
     this.memberValueEnum  = InternalMemberValueE.Empty;
     this.dtType           = null;
     this.numItems         = 0;
     this.nullCount        = 0;
     this.typeInformation  = null;
     this.memberLength     = 0;
     this.binaryTypeEnumA  = null;
     this.typeInformationA = null;
     this.memberNames      = null;
     this.memberTypes      = null;
     this.pr.Init();
 }
        internal void Init()
        {
            isInitial = false;
            count = 0; 
            expectedType = BinaryTypeEnum.ObjectUrt;
            expectedTypeInformation = null; 
 
            name = null;
            objectTypeEnum = InternalObjectTypeE.Empty; 
            memberTypeEnum = InternalMemberTypeE.Empty;
            memberValueEnum = InternalMemberValueE.Empty;
            dtType = null;
 
            // Array Information
            numItems = 0; 
            nullCount = 0; 
            //binaryTypeEnum
            typeInformation = null; 

            // Member Information
            memberLength = 0;
            binaryTypeEnumA = null; 
            typeInformationA = null;
            memberNames = null; 
            memberTypes = null; 

            pr.Init(); 
        }
Exemplo n.º 11
0
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            PRparseTypeEnum      = InternalParseTypeE.Empty;
            PRobjectTypeEnum     = InternalObjectTypeE.Empty;
            PRarrayTypeEnum      = InternalArrayTypeE.Empty;
            PRmemberTypeEnum     = InternalMemberTypeE.Empty;
            PRmemberValueEnum    = InternalMemberValueE.Empty;
            PRobjectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            PRname = null;

            // Value
            PRvalue = null;

            // dt attribute
            PRkeyDt      = null;
            PRdtType     = null;
            PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
            PRisEnum     = false;

            // Object ID
            PRobjectId = 0;

            // Reference ID
            PRidRef = 0;

            // Array

            // Array Element Type
            PRarrayElementTypeString = null;
            PRarrayElementType       = null;
            PRisArrayVariant         = false;
            PRarrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;


            // Parsed array information
            PRrank        = 0;
            PRlengthA     = null;
            PRpositionA   = null;
            PRlowerBoundA = null;
            PRupperBoundA = null;

            // Array map for placing array elements in array
            PRindexMap       = null;
            PRmemberIndex    = 0;
            PRlinearlength   = 0;
            PRrectangularMap = null;
            PRisLowerBound   = false;

            // SerializedStreamHeader information
            PRtopId    = 0;
            PRheaderId = 0;

            // ValueType Fixup needed
            PRisValueTypeFixup = false;

            PRnewObj         = null;
            PRobjectA        = null;
            PRprimitiveArray = null;
            PRobjectInfo     = null;
            PRisRegistered   = false;
            PRmemberData     = null;
            PRsi             = null;

            PRnullCount = 0;
        }
        // Initialize ParseRecord. Called when reusing. 
        internal void Init()
        {
            // Enums
            PRparseTypeEnum = InternalParseTypeE.Empty; 
            PRobjectTypeEnum = InternalObjectTypeE.Empty;
            PRarrayTypeEnum = InternalArrayTypeE.Empty; 
            PRmemberTypeEnum = InternalMemberTypeE.Empty; 
            PRmemberValueEnum = InternalMemberValueE.Empty;
            PRobjectPositionEnum = InternalObjectPositionE.Empty; 

            // Object
            PRname = null;
 
            // Value
            PRvalue = null; 
 
            // dt attribute
            PRkeyDt = null; 
            PRdtType = null;
            PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
            PRisEnum = false;
 
            // Object ID
            PRobjectId = 0; 
 
            // Reference ID
            PRidRef = 0; 

            // Array

            // Array Element Type 
            PRarrayElementTypeString = null;
            PRarrayElementType = null; 
            PRisArrayVariant = false; 
            PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;
 

            // Parsed array information
            PRrank = 0;
            PRlengthA = null; 
            PRpositionA = null;
            PRlowerBoundA = null; 
            PRupperBoundA = null; 

            // Array map for placing array elements in array 
            PRindexMap = null;
            PRmemberIndex = 0;
            PRlinearlength = 0;
            PRrectangularMap = null; 
            PRisLowerBound = false;
 
            // SerializedStreamHeader information 
            PRtopId = 0;
            PRheaderId = 0; 

            // ValueType Fixup needed
            PRisValueTypeFixup = false;
 
            PRnewObj = null;
            PRobjectA = null; 
            PRprimitiveArray = null; 
            PRobjectInfo = null;
            PRisRegistered = false; 
            PRmemberData = null;
            PRsi = null;

            PRnullCount = 0; 
        }
Exemplo n.º 13
0
		// Initialize ParseRecord. Called when reusing.
		internal void Init()
		{
			// Enums
			PRparseTypeEnum = InternalParseTypeE.Empty;
			PRobjectTypeEnum = InternalObjectTypeE.Empty;
			PRarrayTypeEnum = InternalArrayTypeE.Empty;
			PRmemberTypeEnum = InternalMemberTypeE.Empty;
			PRmemberValueEnum = InternalMemberValueE.Empty;
			PRobjectPositionEnum = InternalObjectPositionE.Empty;

			// Object
			PRname = null;
			PRnameXmlKey = null;
			PRxmlNameSpace = null;
			PRisParsed = false;
            PRisProcessAttributes = false;

			// Value
			PRvalue = null;

			// dt attribute
			PRkeyDt = null;
			PRdtType = null;
            PRassemblyName = null;
			PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
			PRisEnum = false;			

			// Object ID
			PRobjectId = 0;

			// Reference ID
			PRidRef = 0;

			// Array

			// Array Element Type
			PRarrayElementTypeString = null;
			PRarrayElementType = null;
			PRisArrayVariant = false;
			PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;


			// Array Primitive Element type
			PRprimitiveArrayTypeString = null;

			// Parsed array information
			PRrank = 0;
			PRlengthA = null;
			PRpositionA = null;
			PRlowerBoundA = null;
			PRupperBoundA = null;		

			// Array map for placing array elements in array
			PRindexMap = null;
			PRmemberIndex = 0;
			PRlinearlength = 0;
			PRrectangularMap = null;
			PRisLowerBound = false;

			// SerializedStreamHeader information
			PRtopId = 0;
			PRheaderId = 0;
			PRisHeaderRoot = false;
			PRisAttributesProcessed = false;

			// Parsed HeaderMember Information
			PRisMustUnderstand = false;

			// Parse State
			PRparseStateEnum = InternalParseStateE.Initial;
			PRisWaitingForNestedObject = false;


			// ValueType Fixup needed
			PRisValueTypeFixup = false;

			PRnewObj = null;
			PRobjectA = null;
			PRprimitiveArray = null;			
			PRobjectInfo = null;
			PRisRegistered = false;

			PRisXmlAttribute = false;
		}
Exemplo n.º 14
0
        private void ParseMember(ParseRecord pr)
        {
            ParseRecord parseRecord = (ParseRecord)this.stack.Peek();

            if (parseRecord != null)
            {
                string prname = parseRecord.PRname;
            }
            InternalMemberTypeE prmemberTypeEnum = pr.PRmemberTypeEnum;

            if (prmemberTypeEnum != InternalMemberTypeE.Field && prmemberTypeEnum == InternalMemberTypeE.Item)
            {
                this.ParseArrayMember(pr);
                return;
            }
            if (pr.PRdtType == null && parseRecord.PRobjectInfo.isTyped)
            {
                pr.PRdtType = parseRecord.PRobjectInfo.GetType(pr.PRname);
                if (pr.PRdtType != null)
                {
                    pr.PRdtTypeCode = Converter.ToCode(pr.PRdtType);
                }
            }
            if (pr.PRmemberValueEnum == InternalMemberValueE.Null)
            {
                parseRecord.PRobjectInfo.AddValue(pr.PRname, null, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                return;
            }
            if (pr.PRmemberValueEnum == InternalMemberValueE.Nested)
            {
                this.ParseObject(pr);
                this.stack.Push(pr);
                if (pr.PRobjectInfo != null && pr.PRobjectInfo.objectType != null && pr.PRobjectInfo.objectType.IsValueType)
                {
                    pr.PRisValueTypeFixup = true;
                    this.ValueFixupStack.Push(new ValueFixup(parseRecord.PRnewObj, pr.PRname, parseRecord.PRobjectInfo));
                    return;
                }
                parseRecord.PRobjectInfo.AddValue(pr.PRname, pr.PRnewObj, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                return;
            }
            else
            {
                if (pr.PRmemberValueEnum != InternalMemberValueE.Reference)
                {
                    if (pr.PRmemberValueEnum == InternalMemberValueE.InlineValue)
                    {
                        if (pr.PRdtType == Converter.typeofString)
                        {
                            this.ParseString(pr, parseRecord);
                            parseRecord.PRobjectInfo.AddValue(pr.PRname, pr.PRvalue, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                            return;
                        }
                        if (pr.PRdtTypeCode != InternalPrimitiveTypeE.Invalid)
                        {
                            object value;
                            if (pr.PRvarValue != null)
                            {
                                value = pr.PRvarValue;
                            }
                            else
                            {
                                value = Converter.FromString(pr.PRvalue, pr.PRdtTypeCode);
                            }
                            parseRecord.PRobjectInfo.AddValue(pr.PRname, value, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                            return;
                        }
                        if (pr.PRarrayTypeEnum == InternalArrayTypeE.Base64)
                        {
                            parseRecord.PRobjectInfo.AddValue(pr.PRname, Convert.FromBase64String(pr.PRvalue), ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                            return;
                        }
                        if (pr.PRdtType == Converter.typeofObject)
                        {
                            throw new SerializationException(Environment.GetResourceString("Serialization_TypeMissing", new object[]
                            {
                                pr.PRname
                            }));
                        }
                        this.ParseString(pr, parseRecord);
                        if (pr.PRdtType == Converter.typeofSystemVoid)
                        {
                            parseRecord.PRobjectInfo.AddValue(pr.PRname, pr.PRdtType, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                            return;
                        }
                        if (parseRecord.PRobjectInfo.isSi)
                        {
                            parseRecord.PRobjectInfo.AddValue(pr.PRname, pr.PRvalue, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                            return;
                        }
                    }
                    else
                    {
                        this.ParseError(pr, parseRecord);
                    }
                    return;
                }
                object @object = this.m_objectManager.GetObject(pr.PRidRef);
                if (@object == null)
                {
                    parseRecord.PRobjectInfo.AddValue(pr.PRname, null, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                    parseRecord.PRobjectInfo.RecordFixup(parseRecord.PRobjectId, pr.PRname, pr.PRidRef);
                    return;
                }
                parseRecord.PRobjectInfo.AddValue(pr.PRname, @object, ref parseRecord.PRsi, ref parseRecord.PRmemberData);
                return;
            }
        }
 internal void Init()
 {
     this.PRparseTypeEnum = InternalParseTypeE.Empty;
     this.PRobjectTypeEnum = InternalObjectTypeE.Empty;
     this.PRarrayTypeEnum = InternalArrayTypeE.Empty;
     this.PRmemberTypeEnum = InternalMemberTypeE.Empty;
     this.PRmemberValueEnum = InternalMemberValueE.Empty;
     this.PRobjectPositionEnum = InternalObjectPositionE.Empty;
     this.PRname = null;
     this.PRnameXmlKey = null;
     this.PRxmlNameSpace = null;
     this.PRisParsed = false;
     this.PRisProcessAttributes = false;
     this.PRvalue = null;
     this.PRkeyDt = null;
     this.PRdtType = null;
     this.PRassemblyName = null;
     this.PRdtTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRisEnum = false;
     this.PRobjectId = 0L;
     this.PRidRef = 0L;
     this.PRarrayElementTypeString = null;
     this.PRarrayElementType = null;
     this.PRisArrayVariant = false;
     this.PRarrayElementTypeCode = InternalPrimitiveTypeE.Invalid;
     this.PRprimitiveArrayTypeString = null;
     this.PRrank = 0;
     this.PRlengthA = null;
     this.PRpositionA = null;
     this.PRlowerBoundA = null;
     this.PRupperBoundA = null;
     this.PRindexMap = null;
     this.PRmemberIndex = 0;
     this.PRlinearlength = 0;
     this.PRrectangularMap = null;
     this.PRisLowerBound = false;
     this.PRtopId = 0L;
     this.PRheaderId = 0L;
     this.PRisHeaderRoot = false;
     this.PRisAttributesProcessed = false;
     this.PRisMustUnderstand = false;
     this.PRparseStateEnum = InternalParseStateE.Initial;
     this.PRisWaitingForNestedObject = false;
     this.PRisValueTypeFixup = false;
     this.PRnewObj = null;
     this.PRobjectA = null;
     this.PRprimitiveArray = null;
     this.PRobjectInfo = null;
     this.PRisRegistered = false;
     this.PRisXmlAttribute = false;
 }
 internal void Init()
 {
     this.isInitial = false;
     this.count = 0;
     this.expectedType = BinaryTypeEnum.ObjectUrt;
     this.expectedTypeInformation = null;
     this.name = null;
     this.objectTypeEnum = InternalObjectTypeE.Empty;
     this.memberTypeEnum = InternalMemberTypeE.Empty;
     this.memberValueEnum = InternalMemberValueE.Empty;
     this.dtType = null;
     this.numItems = 0;
     this.nullCount = 0;
     this.typeInformation = null;
     this.memberLength = 0;
     this.binaryTypeEnumA = null;
     this.typeInformationA = null;
     this.memberNames = null;
     this.memberTypes = null;
     this.pr.Init();
 }
Exemplo n.º 17
0
        // Initialize ParseRecord. Called when reusing.
        internal void Init()
        {
            // Enums
            PRparseTypeEnum      = InternalParseTypeE.Empty;
            PRobjectTypeEnum     = InternalObjectTypeE.Empty;
            PRarrayTypeEnum      = InternalArrayTypeE.Empty;
            PRmemberTypeEnum     = InternalMemberTypeE.Empty;
            PRmemberValueEnum    = InternalMemberValueE.Empty;
            PRobjectPositionEnum = InternalObjectPositionE.Empty;

            // Object
            PRname                = null;
            PRnameXmlKey          = null;
            PRxmlNameSpace        = null;
            PRisParsed            = false;
            PRisProcessAttributes = false;

            // Value
            PRvalue = null;

            // dt attribute
            PRkeyDt        = null;
            PRdtType       = null;
            PRassemblyName = null;
            PRdtTypeCode   = InternalPrimitiveTypeE.Invalid;
            PRisEnum       = false;

            // Object ID
            PRobjectId = 0;

            // Reference ID
            PRidRef = 0;

            // Array

            // Array Element Type
            PRarrayElementTypeString = null;
            PRarrayElementType       = null;
            PRisArrayVariant         = false;
            PRarrayElementTypeCode   = InternalPrimitiveTypeE.Invalid;


            // Array Primitive Element type
            PRprimitiveArrayTypeString = null;

            // Parsed array information
            PRrank        = 0;
            PRlengthA     = null;
            PRpositionA   = null;
            PRlowerBoundA = null;
            PRupperBoundA = null;

            // Array map for placing array elements in array
            PRindexMap       = null;
            PRmemberIndex    = 0;
            PRlinearlength   = 0;
            PRrectangularMap = null;
            PRisLowerBound   = false;

            // SerializedStreamHeader information
            PRtopId                 = 0;
            PRheaderId              = 0;
            PRisHeaderRoot          = false;
            PRisAttributesProcessed = false;

            // Parsed HeaderMember Information
            PRisMustUnderstand = false;

            // Parse State
            PRparseStateEnum           = InternalParseStateE.Initial;
            PRisWaitingForNestedObject = false;


            // ValueType Fixup needed
            PRisValueTypeFixup = false;

            PRnewObj         = null;
            PRobjectA        = null;
            PRprimitiveArray = null;
            PRobjectInfo     = null;
            PRisRegistered   = false;

            PRisXmlAttribute = false;
        }