MCPcopy Create free account
hub / github.com/citron-neo/emulator / StringFromBuffer

Function StringFromBuffer

src/common/string_util.cpp:38–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38std::string StringFromBuffer(std::span<const u8> data) {
39 return std::string(data.begin(), std::find(data.begin(), data.end(), '\0'));
40}
41
42std::string StringFromBuffer(std::span<const char> data) {
43 return std::string(data.begin(), std::find(data.begin(), data.end(), '\0'));

Callers 15

ResolveMethod · 0.85
ResolveExMethod · 0.85
GetHostByNameRequestImplFunction · 0.85
GetAddrInfoRequestImplFunction · 0.85
OpenAudioOutAutoMethod · 0.85
OpenMethod · 0.85
SetHostNameMethod · 0.85
FlushSessionCacheMethod · 0.85
FlushSessionCacheMethod · 0.85

Calls 3

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected