MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / prepend

Method prepend

common/SmallString.cpp:187–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void 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
202void SmallStringBase::append(char c)
203{

Callers 3

getChangesCompleteMethod · 0.80
typeToStringFunction · 0.80

Calls 3

c_strMethod · 0.45
lengthMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected