src/sys/dotnet/fanx/fcode/FPod.cs
/// <summary>
/// Read from an input stream (used for loading scripts from memory)
/// </summary>
Read from an input stream (used for loading scripts from memory)
Read from an input stream ( used for loading scripts from memory )
public void readFully(ZipInputStream zip)
    {
      FStore.Input ins = new ReadFullyInput(this, zip);
      ZipEntry entry;
      m_literals = new FLiterals(this);
      while ((entry = zip.GetNextEntry()) != null)
      {
        string name = entry.Name;
        if (name == "names.def") m_names.read(ins);
        else if (name == "typeRefs.def") m_typeRefs.read(ins);
        else if (name == "fieldRefs.def") m_fieldRefs.read(ins);
        else if (name == "methodRefs.def") m_methodRefs.read(ins);
        else if (name == "pod.def") readPodMeta(ins);
        else if (name == "types.def") readTypeMeta(ins);
        else if (name.EndsWith(".fcode")) readType(name, ins);
        else if (name == "ints.def") m_literals.m_ints.read(ins);
        else if (name == "floats.def") m_literals.m_floats.read(ins);
        else if (name == "decimals.def") m_literals.m_decimals.read(ins);
        else if (name == "strs.def") m_literals.m_strs.read(ins);
        else if (name == "durations.def") m_literals.m_durations.read(ins);
        else if (name == "uris.def") m_literals.m_uris.read(ins);
        else System.Console.WriteLine("WARNING: unexpected file in pod: " + name);
      }
    }
public void readFully ( ZipInputStream zip ) { FStore . Input ins = new ReadFullyInput ( this , zip ) ; ZipEntry entry ; m_literals = new FLiterals ( this ) ; while ( ( entry = zip . GetNextEntry ( ) ) != null ) { string name = entry . Name ; if ( name == " " ) m_names . read ( ins ) ; else if ( name == " " ) m_typeRefs . read ( ins ) ; else if ( name == " " ) m_fieldRefs . read ( ins ) ; else if ( name == " " ) m_methodRefs . read ( ins ) ; else if ( name == " " ) readPodMeta ( ins ) ; else if ( name == " " ) readTypeMeta ( ins ) ; else if ( name . EndsWith ( " " ) ) readType ( name , ins ) ; else if ( name == " " ) m_literals . m_ints . read ( ins ) ; else if ( name == " " ) m_literals . m_floats . read ( ins ) ; else if ( name == " " ) m_literals . m_decimals . read ( ins ) ; else if ( name == " " ) m_literals . m_strs . read ( ins ) ; else if ( name == " " ) m_literals . m_durations . read ( ins ) ; else if ( name == " " ) m_literals . m_uris . read ( ins ) ; else System . Console . WriteLine ( " " + name ) ; } }
Read from an input stream (used for loading scripts from memory)
Read from an input stream ( used for loading scripts from memory )
zip
ZipInputStream