MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / readString

Method readString

src/hx/cppia/CppiaStream.h:189–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 String readString(std::string *outStdStdString=0)
190 {
191 int len = getAsciiInt();
192 skipChar();
193 const char *data0 = data;
194 int hasBig = false;
195 for(int i=0;i<len;i++)
196 skipChar();
197 if (outStdStdString)
198 *outStdStdString = std::string(data0, data);
199 return String::createPermanent(data0,data-data0);
200 }
201
202 void readBytes(unsigned char *outBytes, int inLen)
203 {

Callers 1

LoadCppiaFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected