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.
| 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. |
no outgoing calls
no test coverage detected