MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / GetSpan

Method GetSpan

eval/eval/evaluator_stack.h:118–122  ·  view source on GitHub ↗

Gets the last size elements of the stack. Checking that stack has enough elements is caller's responsibility. Please note that calls to Push may invalidate returned Span object.

Source from the content-addressed store, hash-verified

116 // Checking that stack has enough elements is caller's responsibility.
117 // Please note that calls to Push may invalidate returned Span object.
118 absl::Span<const cel::Value> GetSpan(size_t size) const {
119 ABSL_DCHECK(HasEnough(size));
120
121 return absl::Span<const cel::Value>(values_ - size, size);
122 }
123
124 // Gets the last size attribute trails of the stack.
125 // Checking that stack has enough elements is caller's responsibility.

Callers 11

DoEvaluateMethod · 0.80
DoEvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
DoEvaluateMethod · 0.80
DoEvaluateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected