host

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHostModule added in v0.0.9

func CreateHostModule()

Types

type HostArray

type HostArray struct {
	// contains filtered or unexported fields
}

func NewHostArray added in v0.0.13

func NewHostArray(h *HostImpl, typeId int32) *HostArray

func (*HostArray) GetInt

func (h *HostArray) GetInt(keyId int32) int64

func (*HostArray) GetLength added in v0.0.13

func (h *HostArray) GetLength() int32

func (*HostArray) GetObject added in v0.0.13

func (h *HostArray) GetObject(keyId int32, typeId int32) int32

func (*HostArray) GetString

func (h *HostArray) GetString(keyId int32) string

func (*HostArray) SetInt

func (h *HostArray) SetInt(keyId int32, value int64)

func (*HostArray) SetString

func (h *HostArray) SetString(keyId int32, value string)

type HostImpl added in v0.0.12

type HostImpl struct {
	// contains filtered or unexported fields
}

func NewHostImpl added in v0.0.12

func NewHostImpl() *HostImpl

func (*HostImpl) AddObjects added in v0.0.14

func (h *HostImpl) AddObjects()

func (*HostImpl) GetInt added in v0.0.12

func (h *HostImpl) GetInt(objId int32, keyId int32) int64

func (*HostImpl) GetKey added in v0.0.12

func (h *HostImpl) GetKey(key string) int32

func (*HostImpl) GetLength added in v0.0.12

func (h *HostImpl) GetLength(objId int32) int32

func (*HostImpl) GetObject added in v0.0.12

func (h *HostImpl) GetObject(objId int32, keyId int32, typeId int32) int32

func (*HostImpl) GetString added in v0.0.12

func (h *HostImpl) GetString(objId int32, keyId int32) string

func (*HostImpl) HasError added in v0.0.12

func (h *HostImpl) HasError() bool

func (*HostImpl) Log added in v0.0.12

func (h *HostImpl) Log(logLevel int, text string)

func (*HostImpl) SetError added in v0.0.12

func (h *HostImpl) SetError(text string)

func (*HostImpl) SetInt added in v0.0.12

func (h *HostImpl) SetInt(objId int32, keyId int32, value int64)

func (*HostImpl) SetString added in v0.0.12

func (h *HostImpl) SetString(objId int32, keyId int32, value string)

type HostMap

type HostMap struct {
	// contains filtered or unexported fields
}

func NewHostMap added in v0.0.13

func NewHostMap(h *HostImpl) *HostMap

func (*HostMap) GetInt added in v0.0.5

func (h *HostMap) GetInt(keyId int32) int64

func (*HostMap) GetLength added in v0.0.13

func (h *HostMap) GetLength() int32

func (*HostMap) GetObject added in v0.0.13

func (h *HostMap) GetObject(keyId int32, typeId int32) int32

func (*HostMap) GetString added in v0.0.5

func (h *HostMap) GetString(keyId int32) string

func (*HostMap) SetInt added in v0.0.5

func (h *HostMap) SetInt(keyId int32, value int64)

func (*HostMap) SetString added in v0.0.5

func (h *HostMap) SetString(keyId int32, value string)

type HostObject

type HostObject interface {
	GetInt(keyId int32) int64
	GetLength() int32
	GetObject(keyId int32, typeId int32) int32
	GetString(keyId int32) string
	SetInt(keyId int32, value int64)
	SetString(keyId int32, value string)
}

func NewNullObject added in v0.0.15

func NewNullObject(h interfaces.HostInterface) HostObject

type Tracker added in v0.0.15

type Tracker struct {
	// contains filtered or unexported fields
}

func NewTracker added in v0.0.15

func NewTracker() *Tracker

func (*Tracker) AddObject added in v0.0.15

func (t *Tracker) AddObject(obj HostObject) int32

func (*Tracker) GetKey added in v0.0.15

func (t *Tracker) GetKey(keyId int32) string

func (*Tracker) GetKeyId added in v0.0.15

func (t *Tracker) GetKeyId(key string) int32

func (*Tracker) GetObject added in v0.0.15

func (t *Tracker) GetObject(objId int32) HostObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL