MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / stref_copy_to

Function stref_copy_to

StereoKitC/libraries/stref.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218///////////////////////////////////////////
219
220void stref_copy_to(const stref_t &ref, char *text, size_t text_size) {
221 assert(ref.temp == false);
222 size_t length = text_size < ref.length ? text_size : ref.length;
223 memcpy(text, ref.start, length);
224 text[length] = '\0';
225}
226
227///////////////////////////////////////////
228

Callers 2

stref_to_fFunction · 0.85
stref_to_iFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected