C# Class Fanx.Fcode.FPod

FPod is the read/write fcode representation of sys::Pod. It's main job in life is to manage all the pod-wide constant tables for names, literals, type/slot references and type/slot definitions.
Show file Open project: xored/f4 Class Usage Examples

Public Properties

Property Type Description
m_depends Fan.Sys.Depend[]
m_fcodeVersion string
m_fieldRefs FTable
m_literals FLiterals
m_meta Fan.Sys.Map
m_methodRefs FTable
m_names FTable
m_podName string
m_podVersion string
m_store FStore
m_typeRefs FTable
m_types Fanx.Fcode.FType[]

Public Methods

Method Description
FPod ( string podName, FStore store ) : System
fieldRef ( int index ) : FTuple
methodRef ( int index ) : FTuple
name ( int index ) : string
ncall ( int index, int opcode ) : NMethod

Map a fcode method signature to a .NET method emit signature.

nfield ( int index, bool mixin ) : NField

Map a fcode field signature to a .NET field emit signature.

nname ( int index ) : string
read ( ) : void

Read from a FStore which provides random access.

readFully ( ZipInputStream zip ) : void

Read from an input stream (used for loading scripts from memory)

readLiterals ( ) : FLiterals

Read the literal constant tables (if not already loaded).

type ( string nameToFind ) : FType
typeRef ( int index ) : FTypeRef

Private Methods

Method Description
meta ( string key ) : string
readPodMeta ( FStore input ) : void
readType ( string name, FStore input ) : void
readTypeMeta ( FStore input ) : void

Method Details

FPod() public method

public FPod ( string podName, FStore store ) : System
podName string
store FStore
return System

fieldRef() public method

public fieldRef ( int index ) : FTuple
index int
return FTuple

methodRef() public method

public methodRef ( int index ) : FTuple
index int
return FTuple

name() public method

public name ( int index ) : string
index int
return string

ncall() public method

Map a fcode method signature to a .NET method emit signature.
public ncall ( int index, int opcode ) : NMethod
index int
opcode int
return NMethod

nfield() public method

Map a fcode field signature to a .NET field emit signature.
public nfield ( int index, bool mixin ) : NField
index int
mixin bool
return NField

nname() public method

public nname ( int index ) : string
index int
return string

read() public method

Read from a FStore which provides random access.
public read ( ) : void
return void

readFully() public method

Read from an input stream (used for loading scripts from memory)
public readFully ( ZipInputStream zip ) : void
zip ICSharpCode.SharpZipLib.Zip.ZipInputStream
return void

readLiterals() public method

Read the literal constant tables (if not already loaded).
public readLiterals ( ) : FLiterals
return FLiterals

type() public method

public type ( string nameToFind ) : FType
nameToFind string
return FType

typeRef() public method

public typeRef ( int index ) : FTypeRef
index int
return FTypeRef

Property Details

m_depends public property

public Depend[],Fan.Sys m_depends
return Fan.Sys.Depend[]

m_fcodeVersion public property

public string m_fcodeVersion
return string

m_fieldRefs public property

public FTable,Fanx.Fcode m_fieldRefs
return FTable

m_literals public property

public FLiterals,Fanx.Fcode m_literals
return FLiterals

m_meta public property

public Map,Fan.Sys m_meta
return Fan.Sys.Map

m_methodRefs public property

public FTable,Fanx.Fcode m_methodRefs
return FTable

m_names public property

public FTable,Fanx.Fcode m_names
return FTable

m_podName public property

public string m_podName
return string

m_podVersion public property

public string m_podVersion
return string

m_store public property

public FStore,Fanx.Fcode m_store
return FStore

m_typeRefs public property

public FTable,Fanx.Fcode m_typeRefs
return FTable

m_types public property

public FType[],Fanx.Fcode m_types
return Fanx.Fcode.FType[]