MCPcopy Create free account
hub / github.com/Chemiculs/qengine / _opString

Method _opString

src/qengine/extern/asmjit/core/string.cpp:202–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200// ===================
201
202Error String::_opString(ModifyOp op, const char* str, size_t size) noexcept {
203 if (size == SIZE_MAX)
204 size = str ? strlen(str) : size_t(0);
205
206 if (!size)
207 return kErrorOk;
208
209 char* p = prepare(op, size);
210 if (!p)
211 return DebugUtils::errored(kErrorOutOfMemory);
212
213 memcpy(p, str, size);
214 return kErrorOk;
215}
216
217Error String::_opChar(ModifyOp op, char c) noexcept {
218 char* p = prepare(op, 1);

Callers

nothing calls this directly

Calls 2

prepareFunction · 0.85
erroredFunction · 0.85

Tested by

no test coverage detected