| 567 | |
| 568 | #if AS_WRITE_OPS == 1 |
| 569 | int 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 | |
| 580 | int CScriptFile::WriteInt(asINT64 val, asUINT bytes) |
| 581 | { |
no test coverage detected