MCPcopy Create free account
hub / github.com/apache/trafficserver / SanityCheckUserIndex

Function SanityCheckUserIndex

include/tscore/PluginUserArgs.h:68–73  ·  view source on GitHub ↗

Verify that the user passed in an index whose value corresponds with the * type. See the comment above the declaration of get_user_arg_offset for the * intention behind this. */

Source from the content-addressed store, hash-verified

66 * intention behind this.
67 */
68static constexpr inline bool
69SanityCheckUserIndex(TSUserArgType type, int idx)
70{
71 int const block_start = get_user_arg_offset(type);
72 return idx >= block_start && idx < block_start + 1000;
73}
74
75/**
76 This is a mixin class (sort of), implementing the appropriate APIs and data storage for

Callers 4

TSUserArgIndexLookupFunction · 0.85
get_user_argMethod · 0.85
set_user_argMethod · 0.85

Calls 1

get_user_arg_offsetFunction · 0.85

Tested by

no test coverage detected