| 319 | } |
| 320 | |
| 321 | StringRef addVersionStampAtEnd(StringRef const& str, Arena& arena) { |
| 322 | int32_t size = str.size(); |
| 323 | uint8_t* s = new (arena) uint8_t[size + 14]; |
| 324 | memcpy(s, str.begin(), size); |
| 325 | memset(&s[size], 0, 10); |
| 326 | memcpy(&s[size + 10], &size, 4); |
| 327 | return StringRef(s, size + 14); |
| 328 | } |
| 329 | |
| 330 | Standalone<StringRef> addVersionStampAtEnd(StringRef const& str) { |
| 331 | Standalone<StringRef> r; |
no test coverage detected