MCPcopy Create free account
hub / github.com/MultiMC/Launcher / toString

Method toString

libraries/classparser/src/annotations.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace java
6{
7std::string annotation::toString()
8{
9 std::ostringstream ss;
10 ss << "Annotation type : " << type_index << " - " << pool[type_index].str_data << std::endl;
11 ss << "Contains " << name_val_pairs.size() << " pairs:" << std::endl;
12 for (unsigned i = 0; i < name_val_pairs.size(); i++)
13 {
14 std::pair<uint16_t, element_value *> &val = name_val_pairs[i];
15 auto name_idx = val.first;
16 ss << pool[name_idx].str_data << "(" << name_idx << ")"
17 << " = " << val.second->toString() << std::endl;
18 }
19 return ss.str();
20}
21
22annotation *annotation::read(util::membuffer &input, constant_pool &pool)
23{

Callers 14

read_os_releaseMethod · 0.45
fallback_lsb_infoMethod · 0.45
QIconThemeMethod · 0.45
toVerificationParamsFunction · 0.45
foreachFunction · 0.45
startPollServerMethod · 0.45
onRefreshFinishedMethod · 0.45
joinMethod · 0.45
launchWithMainClassMethod · 0.45
appendCustomValuesFunction · 0.45
sendEventMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected