| 1169 | } |
| 1170 | |
| 1171 | inline bool TryFastAppend(const char* ip, size_t available, size_t len) { |
| 1172 | char* op = op_; |
| 1173 | const size_t space_left = op_limit_ - op; |
| 1174 | if (len <= 16 && available >= 16 + kMaximumTagLength && space_left >= 16) { |
| 1175 | // Fast path, used for the majority (about 95%) of invocations. |
| 1176 | UnalignedCopy64(ip, op); |
| 1177 | UnalignedCopy64(ip + 8, op + 8); |
| 1178 | op_ = op + len; |
| 1179 | return true; |
| 1180 | } else { |
| 1181 | return false; |
| 1182 | } |
| 1183 | } |
| 1184 | |
| 1185 | inline bool AppendFromSelf(size_t offset, size_t len) { |
| 1186 | char* op = op_; |
nothing calls this directly
no test coverage detected