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

Function readString

include/RemotePlugin.h:579–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577 }
578
579 inline std::string readString()
580 {
581 const int len = readInt();
582 if( len )
583 {
584 char * sc = new char[len + 1];
585 read( sc, len );
586 sc[len] = 0;
587 std::string s( sc );
588 delete[] sc;
589 return s;
590 }
591 return std::string();
592 }
593
594
595 inline void writeString( const std::string & _s )

Callers 1

receiveMessageMethod · 0.85

Calls 2

readIntFunction · 0.85
readFunction · 0.85

Tested by

no test coverage detected