Exemplo n.º 1
0
 public void Read(ObjectContainerBase stream, ClassMetadata clazz, ByteArrayBuffer
                  reader)
 {
     clazz.SetAncestor(stream.ClassMetadataForID(reader.ReadInt()));
     //        if(clazz.callConstructor()){
     //            // The logic further down checks the ancestor YapClass, whether
     //            // or not it is allowed, not to call constructors. The ancestor
     //            // YapClass may possibly have not been loaded yet.
     //            clazz.createConstructor(true);
     //        }
     clazz.CheckType();
     ReadIndex(stream, clazz, reader);
     clazz._aspects = ReadAspects(stream, reader, clazz);
 }
Exemplo n.º 2
0
 public void Read(ObjectContainerBase stream, ClassMetadata clazz, ByteArrayBuffer
     reader)
 {
     clazz.SetAncestor(stream.ClassMetadataForID(reader.ReadInt()));
     //        if(clazz.callConstructor()){
     //            // The logic further down checks the ancestor YapClass, whether
     //            // or not it is allowed, not to call constructors. The ancestor
     //            // YapClass may possibly have not been loaded yet.
     //            clazz.createConstructor(true);
     //        }
     clazz.CheckType();
     ReadIndex(stream, clazz, reader);
     clazz._aspects = ReadAspects(stream, reader, clazz);
 }