| 185 | } |
| 186 | |
| 187 | void SmallStringBase::prepend(const char* str, u32 length) |
| 188 | { |
| 189 | if (length == 0) |
| 190 | return; |
| 191 | |
| 192 | make_room_for(length); |
| 193 | |
| 194 | pxAssert((length + m_length) < m_buffer_size); |
| 195 | |
| 196 | std::memmove(m_buffer + length, m_buffer, m_length); |
| 197 | std::memcpy(m_buffer, str, length); |
| 198 | m_length += length; |
| 199 | m_buffer[m_length] = 0; |
| 200 | } |
| 201 | |
| 202 | void SmallStringBase::append(char c) |
| 203 | { |
no test coverage detected