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

Method GetString

pkg/filament/cpython/object.go:54–56  ·  view source on GitHub ↗

GetString returns the nth positional argument as a string.

(n uint8)

Source from the content-addressed store, hash-verified

52
53// GetString returns the nth positional argument as a string.
54func (args PyArgs) GetString(n uint8) string {
55 return fromRawOb(C.PyArg_ParseString((*C.PyObject)(unsafe.Pointer(args)), C.int(n))).String()
56}
57
58// GetStringSlice returns the nth argument as a slice of string values.
59func (args PyArgs) GetStringSlice(n uint8) ([]string, error) {

Callers 9

GetMethod · 0.45
GetMethod · 0.45
GetMethod · 0.45
GetMethod · 0.45
GetMethod · 0.45
GetMethod · 0.45
sortByFnMethod · 0.45
setFilterFnMethod · 0.45
titleFnMethod · 0.45

Calls 2

fromRawObFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected