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

Method TryGetUint32

pkg/event/param.go:467–473  ·  view source on GitHub ↗

TryGetUint32 tries to retrieve the uint32 value from the parameter. Returns the underlying value on success, or zero otherwise.

(name string)

Source from the content-addressed store, hash-verified

465// TryGetUint32 tries to retrieve the uint32 value from the parameter.
466// Returns the underlying value on success, or zero otherwise.
467func (pars Params) TryGetUint32(name string) uint32 {
468 val, err := pars.GetUint32(name)
469 if err != nil {
470 return 0
471 }
472 return val
473}
474
475// GetInt32 returns the underlying int32 value from the parameter.
476func (pars Params) GetInt32(name string) (int32, error) {

Callers 2

GetMethod · 0.80
ScanMethod · 0.80

Calls 1

GetUint32Method · 0.95

Tested by

no test coverage detected