| 1158 | } |
| 1159 | |
| 1160 | inline bool Append(const char* ip, size_t len) { |
| 1161 | char* op = op_; |
| 1162 | const size_t space_left = op_limit_ - op; |
| 1163 | if (space_left < len) { |
| 1164 | return false; |
| 1165 | } |
| 1166 | memcpy(op, ip, len); |
| 1167 | op_ = op + len; |
| 1168 | return true; |
| 1169 | } |
| 1170 | |
| 1171 | inline bool TryFastAppend(const char* ip, size_t available, size_t len) { |
| 1172 | char* op = op_; |
nothing calls this directly
no outgoing calls
no test coverage detected