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

Method TryGetUint64

pkg/event/param.go:513–519  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

511// TryGetUint64 tries to retrieve the uint64 value from the parameter.
512// Returns the underlying value on success, or zero otherwise.
513func (pars Params) TryGetUint64(name string) uint64 {
514 val, err := pars.GetUint64(name)
515 if err != nil {
516 return 0
517 }
518 return val
519}
520
521// GetInt64 returns the underlying int64 value from the parameter.
522func (pars Params) GetInt64(name string) (int64, error) {

Callers 2

GetMethod · 0.80
syncModulesMethod · 0.80

Calls 1

GetUint64Method · 0.95

Tested by

no test coverage detected