MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / WriteString

Function WriteString

pcsx2/GameList.cpp:487–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487static bool WriteString(std::FILE* stream, const std::string& str)
488{
489 const u32 size = static_cast<u32>(str.size());
490 return (std::fwrite(&size, sizeof(size), 1, stream) > 0 && (size == 0 || std::fwrite(str.data(), size, 1, stream) > 0));
491}
492
493static bool WriteU8(std::FILE* stream, u8 dest)
494{

Callers 7

AddAllocationToObjectMethod · 0.85
RawNumberMethod · 0.85
StringMethod · 0.85
RawNumberMethod · 0.85
StringMethod · 0.85
WriteEntryToCacheMethod · 0.85

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected