| 559 | |
| 560 | #if AS_WRITE_OPS == 1 |
| 561 | int 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 | |
| 572 | int CScriptFile::WriteInt(asINT64 val, asUINT bytes) |
| 573 | { |
no test coverage detected