MCPcopy Create free account
hub / github.com/dolphin-emu/dolphin / Get

Method Get

Source/Core/DiscIO/NANDContentLoader.cpp:105–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 EnsureOpen();
104}
105const std::vector<u8> CNANDContentDataFile::Get()
106{
107 std::vector<u8> result;
108 EnsureOpen();
109 if (!m_file->IsGood())
110 return result;
111
112 u64 size = m_file->GetSize();
113 if (size == 0)
114 return result;
115
116 result.resize(size);
117 m_file->ReadBytes(result.data(), result.size());
118
119 return result;
120}
121
122bool CNANDContentDataFile::GetRange(u32 start, u32 size, u8* buffer)
123{

Callers 15

LoadSettingsMethod · 0.45
LoadGameConfigMethod · 0.45
LoadSettingsMethod · 0.45
CreateGUIControlsMethod · 0.45
InitLanguageSupportMethod · 0.45
LoadIniPerspectivesMethod · 0.45
GetTraversalPortFunction · 0.45
GetTraversalServerFunction · 0.45
NetPlaySetupFrameMethod · 0.45
OnChoiceMethod · 0.45

Calls 6

ReadBytesMethod · 0.80
IsGoodMethod · 0.45
GetSizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected