Exemplo n.º 1
0
 internal ClassInfo ReadMembers(SerReader analyzer)
 {
     ReadObjectId(analyzer);
     Name    = analyzer.ReadMarkString();
     Members = new List <MemberInfo>(analyzer.reader.ReadInt32());
     for (int i = 0; i < Members.Capacity; i++)
     {
         Members.Add(new MemberInfo());
         Members[i].Name           = analyzer.reader.ReadString();
         Members[i].RelevantObject = this;
     }
     return(this);
 }
Exemplo n.º 2
0
        internal static void GetTypeAdditionalInfo(TypeHoldingThing typeHolder, SerReader analyzer)
        {
            switch (typeHolder.BinaryType)
            {
            case BinaryTypeEnumeration.Primitive:
                typeHolder.PrimitiveType = (PrimitiveTypeEnumeration)analyzer.reader.ReadByte();
                break;

            case BinaryTypeEnumeration.String:
                break;

            case BinaryTypeEnumeration.Object:
                break;

            case BinaryTypeEnumeration.SystemClass:
                typeHolder.TypeInfo          = new ClassTypeInfo();
                typeHolder.TypeInfo.TypeName = analyzer.ReadMarkString();
                break;

            case BinaryTypeEnumeration.Class:
                typeHolder.TypeInfo          = new ClassTypeInfo();
                typeHolder.TypeInfo.TypeName = analyzer.ReadMarkString();
                int libraryId = analyzer.reader.ReadInt32();
                analyzer.FixTypeName(analyzer.LibrariesFound[libraryId].Name, typeHolder.TypeInfo.TypeName);
                break;

            case BinaryTypeEnumeration.ObjectArray:
                break;

            case BinaryTypeEnumeration.StringArray:
                break;

            case BinaryTypeEnumeration.PrimitiveArray:
                typeHolder.PrimitiveType = (PrimitiveTypeEnumeration)analyzer.reader.ReadByte();
                break;
            }
        }
Exemplo n.º 3
0
 internal static void GetTypeAdditionalInfo(TypeHoldingThing typeHolder, SerReader analyzer)
 {
     switch (typeHolder.BinaryType)
     {
         case BinaryTypeEnumeration.Primitive:
             typeHolder.PrimitiveType = (PrimitiveTypeEnumeration)analyzer.reader.ReadByte();
             break;
         case BinaryTypeEnumeration.String:
             break;
         case BinaryTypeEnumeration.Object:
             break;
         case BinaryTypeEnumeration.SystemClass:
             typeHolder.TypeInfo = new ClassTypeInfo();
             typeHolder.TypeInfo.TypeName = analyzer.ReadMarkString();
             break;
         case BinaryTypeEnumeration.Class:
             typeHolder.TypeInfo = new ClassTypeInfo();
             typeHolder.TypeInfo.TypeName = analyzer.ReadMarkString();
             int libraryId = analyzer.reader.ReadInt32();
             analyzer.FixTypeName(analyzer.LibrariesFound[libraryId].Name, typeHolder.TypeInfo.TypeName);
             break;
         case BinaryTypeEnumeration.ObjectArray:
             break;
         case BinaryTypeEnumeration.StringArray:
             break;
         case BinaryTypeEnumeration.PrimitiveArray:
             typeHolder.PrimitiveType = (PrimitiveTypeEnumeration)analyzer.reader.ReadByte();
             break;
     }
 }
Exemplo n.º 4
0
 internal ClassInfo ReadMembers(SerReader analyzer)
 {
     ReadObjectId(analyzer);
     Name = analyzer.ReadMarkString();
     Members = new List<MemberInfo>(analyzer.reader.ReadInt32());
     for (int i = 0; i < Members.Capacity; i++)
     {
         Members.Add(new MemberInfo());
         Members[i].Name = analyzer.reader.ReadString();
         Members[i].RelevantObject = this;
     }
     return this;
 }