* Read the given amount of bytes from the buffer into the string. * @param str The string to write to. * @param length The amount of bytes to read into the string. * @note Does not perform any validation on validity of the string. */
| 1037 | * @note Does not perform any validation on validity of the string. |
| 1038 | */ |
| 1039 | void SlReadString(std::string &str, size_t length) |
| 1040 | { |
| 1041 | str.resize(length); |
| 1042 | SlCopyBytes(str.data(), length); |
| 1043 | } |
| 1044 | |
| 1045 | /** |
| 1046 | * Save/Load a \c std::string. |
no test coverage detected