MCPcopy Create free account
hub / github.com/anjo76/angelscript / WriteString

Method WriteString

sdk/add_on/scriptfile/scriptfile.cpp:569–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567
568#if AS_WRITE_OPS == 1
569int CScriptFile::WriteString(const std::string &str)
570{
571 if( file == 0 )
572 return -1;
573
574 // Write the entire string
575 size_t r = fwrite(&str[0], 1, str.length(), file);
576
577 return int(r);
578}
579
580int CScriptFile::WriteInt(asINT64 val, asUINT bytes)
581{

Callers 1

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected