MCPcopy Create free account
hub / github.com/argotorg/solidity / stringToSolidity

Function stringToSolidity

test/libsolidity/LibSolc.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67char* stringToSolidity(std::string const& _input)
68{
69 char* ptr = solidity_alloc(_input.length());
70 BOOST_REQUIRE(ptr != nullptr);
71 std::memcpy(ptr, _input.c_str(), _input.length());
72 return ptr;
73}
74
75} // end anonymous namespace
76

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

solidity_allocFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected