MCPcopy Create free account
hub / github.com/amwatson/CitraVR / StringFromFixedZeroTerminatedBuffer

Function StringFromFixedZeroTerminatedBuffer

src/common/string_util.cpp:210–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208#endif
209
210std::string StringFromFixedZeroTerminatedBuffer(const char* buffer, std::size_t max_len) {
211 std::size_t len = 0;
212 while (len < max_len && buffer[len] != '\0')
213 ++len;
214
215 return std::string(buffer, len);
216}
217} // namespace Common

Callers 1

LoadExecMethod · 0.85

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected