MCPcopy Create free account
hub / github.com/cinder/Cinder / loadString

Function loadString

src/cinder/Utilities.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142string loadString( const DataSourceRef &dataSource )
143{
144 auto buffer = dataSource->getBuffer();
145 const char *data = static_cast<const char *>( buffer->getData() );
146
147 return string( data, data + buffer->getSize() );
148}
149
150void writeString( const fs::path &path, const std::string &str )
151{

Callers 9

initDataMethod · 0.85
queryMastodonFunction · 0.85
setupMethod · 0.85
Utilities.cppFile · 0.85
loadJsonFunction · 0.85
JsonTreeMethod · 0.85
parseMethod · 0.85

Calls 4

stringFunction · 0.85
getBufferMethod · 0.80
getDataMethod · 0.45
getSizeMethod · 0.45

Tested by 1