| 2306 | op_limit_min_slop_(dst) {} // Safe default see invariant. |
| 2307 | |
| 2308 | inline void SetExpectedLength(size_t len) { |
| 2309 | op_limit_ = op_ + len; |
| 2310 | // Prevent pointer from being past the buffer. |
| 2311 | op_limit_min_slop_ = op_limit_ - std::min<size_t>(kSlopBytes - 1, len); |
| 2312 | } |
| 2313 | |
| 2314 | inline bool CheckLength() const { return op_ == op_limit_; } |
| 2315 |
nothing calls this directly
no outgoing calls
no test coverage detected