MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ArrayLen

Function ArrayLen

lib/base/array-script.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace icinga;
12
13static double ArrayLen()
14{
15 ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
16 Array::Ptr self = static_cast<Array::Ptr>(vframe->Self);
17 REQUIRE_NOT_NULL(self);
18 return self->GetLength();
19}
20
21static void ArraySet(int index, const Value& value)
22{

Callers

nothing calls this directly

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected