MCPcopy Create free account
hub / github.com/LMMS/lmms / readString

Method readString

include/RemotePlugin.h:280–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 inline std::string readString()
281 {
282 const int len = readInt();
283 if( len )
284 {
285 char * sc = new char[len + 1];
286 read( sc, len );
287 sc[len] = 0;
288 std::string s( sc );
289 delete[] sc;
290 return s;
291 }
292 return std::string();
293 }
294
295
296 inline void writeString( const std::string & _s )

Callers 1

receiveMessageMethod · 0.80

Calls 2

readIntFunction · 0.85
readFunction · 0.85

Tested by

no test coverage detected