Documentation
¶
Index ¶
- Constants
- type Config
- type LibDeserializer
- type ObjField
- type ObjMessage
- type ObjSection
- type Runtime
- type ScriptRt
- func (r *ScriptRt) Initialize() error
- func (r *ScriptRt) Load(reader io.Reader, chunkName, keyName string) error
- func (r *ScriptRt) NewGlobalSimpleValue(name string, value interface{})
- func (r *ScriptRt) NewGlobalUserData(name string, value interface{}, metaName string)
- func (r *ScriptRt) RunDeserializer() (*bufr.Message, error)
Constants ¶
View Source
const ( RUNTIME_METATABLE = "gobufrkit.runtime" DESERIALIZER = "DESERIALIZER" )
View Source
const DESERIALIZER_META_TABLE = "gobufrkit.deserializer"
View Source
const FIELD_META_TABLE = "gobufrkit.field"
View Source
const MESSAGE_META_TABLE = "gobufrkit.message"
View Source
const SECTION_META_TABLE = "gobufrkit.section"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LibDeserializer ¶
type LibDeserializer struct {
// contains filtered or unexported fields
}
type ObjMessage ¶
type ObjMessage struct {
}
type ObjSection ¶
type ObjSection struct {
}
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime(config *Config, pr tdcfio.PeekableReader) (*Runtime, error)
type ScriptRt ¶
type ScriptRt struct {
// contains filtered or unexported fields
}
func NewScriptRt ¶
func NewScriptRt(definitionsPath string, factory deserialize.Factory) *ScriptRt
func (*ScriptRt) Initialize ¶
Initialize the runtime. This will setup the bindings and perform other initialization stuff.
func (*ScriptRt) NewGlobalSimpleValue ¶
Add a new global simple value using the given name
func (*ScriptRt) NewGlobalUserData ¶
Add a new global user data using the given name and metatable
Click to show internal directories.
Click to hide internal directories.