MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / TryGetAddress

Method TryGetAddress

pkg/event/param.go:561–571  ·  view source on GitHub ↗

TryGetAddress attempts to convert the underlying type to address.

(name string)

Source from the content-addressed store, hash-verified

559
560// TryGetAddress attempts to convert the underlying type to address.
561func (pars Params) TryGetAddress(name string) va.Address {
562 par, err := pars.findParam(name)
563 if err != nil {
564 return 0
565 }
566 v, ok := par.Value.(uint64)
567 if !ok {
568 return 0
569 }
570 return va.Address(v)
571}
572
573// GetIPv4 returns the underlying IPv4 address from the parameter.
574func (pars Params) GetIPv4(name string) (net.IP, error) {

Callers 10

AddThreadMethod · 0.80
AddModuleMethod · 0.80
AddMmapMethod · 0.80
updateSnapshottersMethod · 0.80
ProcessEventMethod · 0.80
syncModulesMethod · 0.80
processCallstackMethod · 0.80
ScanMethod · 0.80
ProcessEventMethod · 0.80
processEventMethod · 0.80

Calls 2

findParamMethod · 0.95
AddressTypeAlias · 0.92

Tested by

no test coverage detected