示例#1
0
 public FaslFile(FaslHeader faslHeader, FaslSection heapSection, FaslSection constSection, Primitive [] primSection, FaslSection cSection)
 {
     this.faslHeader   = faslHeader;
     this.heapSection  = heapSection;
     this.constSection = constSection;
     this.primSection  = primSection;
     this.cSection     = cSection;
     this.sharingTable = new Dictionary <uint, object> ();
 }
示例#2
0
        internal static FaslFile Fasload(BinaryReader binaryReader)
        {
            FaslHeader  faslHeader   = FaslHeader.Load(binaryReader);
            FaslSection heapSection  = FaslSection.Load(binaryReader, Strip(faslHeader.heapBase), Strip(faslHeader.heapCount), faslHeader.heapCount);
            FaslSection constSection = FaslSection.Load(binaryReader, Strip(faslHeader.constBase), Strip(faslHeader.constCount), faslHeader.constCount);

            Primitive [] primTable = LoadPrimitives(binaryReader, 0, (uint)Strip(faslHeader.primSize), faslHeader.primLength);
            FaslSection  cTable    = FaslSection.Load(binaryReader, 0, Strip(faslHeader.cSize), faslHeader.cSize);

            return(new FaslFile(faslHeader, heapSection, constSection, primTable, cTable));
        }
示例#3
0
 public FaslFile(FaslHeader faslHeader, FaslSection heapSection, FaslSection constSection, Primitive [] primSection, FaslSection cSection)
 {
     this.faslHeader = faslHeader;
     this.heapSection = heapSection;
     this.constSection = constSection;
     this.primSection = primSection;
     this.cSection = cSection;
     this.sharingTable = new Dictionary<uint, object> ();
 }