MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / WriteString

Method WriteString

external/as_add_on/scriptfile/scriptfile.cpp:561–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560#if AS_WRITE_OPS == 1
561int CScriptFile::WriteString(const std::string &str)
562{
563 if( file == 0 )
564 return -1;
565
566 // Write the entire string
567 size_t r = fwrite(&str[0], 1, str.length(), file);
568
569 return int(r);
570}
571
572int CScriptFile::WriteInt(asINT64 val, asUINT bytes)
573{

Callers 1

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected