MCPcopy Create free account
hub / github.com/FDio/vpp / get_vec_len

Function get_vec_len

src/vpp-api/python/vpp_papi/vpp_stats.py:69–71  ·  view source on GitHub ↗

Equivalent to VPP vec_len()

(stats, vector_offset)

Source from the content-addressed store, hash-verified

67
68
69def get_vec_len(stats, vector_offset):
70 """Equivalent to VPP vec_len()"""
71 return VEC_LEN_FMT.unpack_from(stats.statseg, vector_offset - 8)[0]
72
73
74def get_string(stats, ptr):

Callers 2

get_stringFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected