msgidutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSuggestMsgID

func GenSuggestMsgID(dset *model.DescriptorSet)

func StringHash

func StringHash(s string) (hash uint16)

字符串转为16位整形值

func StructMsgID

func StructMsgID(d *model.Descriptor) (msgid int)

Types

type AutoMsgIDCacheFile

type AutoMsgIDCacheFile struct {
	Caches []MsgInfo
}

func (*AutoMsgIDCacheFile) AddNewMsg

func (self *AutoMsgIDCacheFile) AddNewMsg(name string, msgid int)

func (*AutoMsgIDCacheFile) ExistsMsgID

func (self *AutoMsgIDCacheFile) ExistsMsgID(name string) int

func (*AutoMsgIDCacheFile) GetNameByID

func (self *AutoMsgIDCacheFile) GetNameByID(msgid int) string

func (*AutoMsgIDCacheFile) Load

func (self *AutoMsgIDCacheFile) Load(cacheFileName string)

func (*AutoMsgIDCacheFile) ModifyByMsgID

func (self *AutoMsgIDCacheFile) ModifyByMsgID(msgid int, name string)

func (*AutoMsgIDCacheFile) Save

func (self *AutoMsgIDCacheFile) Save(cacheFileName string)

type MsgInfo

type MsgInfo struct {
	Name  string
	MsgID int
}

Jump to

Keyboard shortcuts

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