MCPcopy Create free account
hub / github.com/DFHack/dfhack / writeSTLString

Function writeSTLString

library/include/MemAccess.h:201–206  ·  view source on GitHub ↗

* write an STL string * @return length written */

Source from the content-addressed store, hash-verified

199 * @return length written
200 */
201 size_t writeSTLString(const void* address, const std::string writeString)
202 {
203 std::string* str = (std::string*)address;
204 str->assign(writeString);
205 return writeString.size();
206 };
207 /**
208 * attempt to copy a string from source address to target address. may truncate or leak, depending on platform
209 * @return length copied

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected