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

Function toString

test/base64Test/src/base64TestApp.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18std::string toString( Buffer b )
19{
20 if( b.getSize() == 0 )
21 return std::string();
22 char *temp = new char[b.getSize()+1];
23 memcpy( temp, b.getData(), b.getSize() );
24 temp[b.getSize()] = 0;
25 return string( temp );
26}
27
28void base64TestApp::setup()
29{

Callers 1

setupMethod · 0.70

Calls 3

stringFunction · 0.85
getSizeMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected