Fanx.Fcode.FPod.read C# (CSharp) Méthode

read() public méthode

Read from a FStore which provides random access.
public read ( ) : void
Résultat 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

Exemple #1
0
        //////////////////////////////////////////////////////////////////////////
        // 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