Fanx.Fcode.FPod.read C# (CSharp) 메소드

read() 공개 메소드

Read from a FStore which provides random access.
public read ( ) : void
리턴 void
        public void read()
        {
            // pod meta
              readPodMeta(m_store.read("meta.props", true));

              m_names.read(m_store.read("fcode/names.def", true));
              m_typeRefs.read(m_store.read("fcode/typeRefs.def"));
              m_fieldRefs.read(m_store.read("fcode/fieldRefs.def"));
              m_methodRefs.read(m_store.read("fcode/methodRefs.def"));

              // type meta
              readTypeMeta(m_store.read("fcode/types.def", true));

              // full fcode always lazy loaded in Type.reflect()
        }

Usage Example

예제 #1
0
파일: Nstub.cs 프로젝트: nomit007/f4
        //////////////////////////////////////////////////////////////////////////
        // Stub
        //////////////////////////////////////////////////////////////////////////
        public static void stub(string podName, DirectoryInfo outDir, bool verbose)
        {
            writeLine("    .NET Stub [" + podName + "]");

              string fanHome = SysProps.getProperty("fan.home");
              string podPath = fanHome + "\\lib\\fan\\" + podName + ".pod";
              string target = new FileInfo(outDir + "\\" + podName + ".dll").FullName;

              if (verbose)
              {
            writeLine("  <- " + podPath);
            Pod pod = Pod.doFind(podName, true, null);
            List list = pod.types();
            string pre = "Fan." + FanUtil.upper(podName) + ".";
            for (int i=0; i<list.sz(); i++)
              writeLine("  " + pre + (list.get(i) as Type).name());
            writeLine("  -> " + target);
              }

              FStore store = new FStore(new ZipFile(podPath));
              FPod fpod = new FPod(podName, store);
              fpod.read();
              FTypeEmit.emitPod(fpod, false, target);
        }
All Usage Examples Of Fanx.Fcode.FPod::read