MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / r_string

Method r_string

ogsr_engine/xrCore/FS.cpp:316–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void IReader::r_string(char* dest, size_t tgt_sz)
317{
318 char* src = (char*)data + Pos;
319 size_t sz = advance_term_string();
320 R_ASSERT2(sz < (tgt_sz - 1), "Dest string less than needed.");
321 strncpy(dest, src, sz);
322 dest[sz] = 0;
323}
324
325void IReader::r_string(xr_string& dest)
326{

Callers 15

LoadMethod · 0.45
InitAddonsMethod · 0.45
GetBriefInfoMethod · 0.45
ScopeRespawnMethod · 0.45
loadMethod · 0.45
LoadMethod · 0.45
AddEffectorFunction · 0.45
GetFontTexNameMethod · 0.45
on_spawnMethod · 0.45
LoadMethod · 0.45
net_SpawnMethod · 0.45
LoadFireParamsMethod · 0.45

Calls 1

assignMethod · 0.45

Tested by 1

InitXmlIdToIndexMethod · 0.36