Documentation
¶
Index ¶
- func CreateJSONFile(filepath string, data any) error
- func CreateTmpJSONFile(filename string, data any) (string, error)
- func GetCppgCfgFromPath(filePath string) (*llcppg.Config, error)
- func GetPubFromPath(filePath string) (map[string]string, error)
- func ReadFile(filePath string) ([]byte, error)
- func ReadPubFile(pubfile string) (ret map[string]string, err error)
- func ReadSigfetchFile(sigfetchFile string) ([]byte, error)
- func RunCommand(dir, cmdName string, args ...string) error
- func SigfetchConfig(configFile string, dir string, isCpp bool) ([]byte, error)
- func SigfetchExtract(cfg *SigfetchExtractConfig) ([]byte, error)
- func WritePubFile(file string, public map[string]string) (err error)
- type CppNameType
- type GoNameType
- type MangleNameType
- type SigfetchExtractConfig
- type SymbolEntry
- type SymbolTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJSONFile ¶
func GetCppgCfgFromPath ¶
llcppg.cfg
func ReadSigfetchFile ¶
func RunCommand ¶
func SigfetchConfig ¶
func SigfetchExtract ¶
func SigfetchExtract(cfg *SigfetchExtractConfig) ([]byte, error)
Types ¶
type CppNameType ¶
type CppNameType = string
type GoNameType ¶
type GoNameType = string
type MangleNameType ¶
type MangleNameType = string
type SigfetchExtractConfig ¶
type SymbolEntry ¶
type SymbolEntry struct {
MangleName MangleNameType `json:"mangle"`
CppName CppNameType `json:"c++"`
GoName GoNameType `json:"go"`
}
type SymbolTable ¶
type SymbolTable struct {
// contains filtered or unexported fields
}
func CreateSymbolTable ¶
func CreateSymbolTable(symbs []SymbolEntry) *SymbolTable
func (*SymbolTable) LookupSymbol ¶
func (t *SymbolTable) LookupSymbol(name MangleNameType) (*SymbolEntry, error)
Click to show internal directories.
Click to hide internal directories.