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

Method GetInt

pkg/filament/cpython/object.go:49–51  ·  view source on GitHub ↗

GetInt returns the nth positional argument as an integer.

(n uint8)

Source from the content-addressed store, hash-verified

47
48// GetInt returns the nth positional argument as an integer.
49func (args PyArgs) GetInt(n uint8) int {
50 return int(C.PyArg_ParseInt((*C.PyObject)(unsafe.Pointer(args)), C.int(n)))
51}
52
53// GetString returns the nth positional argument as a string.
54func (args PyArgs) GetString(n uint8) string {

Callers 4

InitFromViperMethod · 0.80
intervalFnMethod · 0.80
maxRowsFnMethod · 0.80
initFromViperMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected