| 1069 | } |
| 1070 | |
| 1071 | static void save_ustring(Ref<FileAccess> f, const String &p_string) { |
| 1072 | CharString utf8 = p_string.utf8(); |
| 1073 | f->store_32(uint32_t(utf8.length() + 1)); |
| 1074 | f->store_buffer((const uint8_t *)utf8.get_data(), utf8.length() + 1); |
| 1075 | } |
| 1076 | |
| 1077 | static String get_ustring(Ref<FileAccess> f) { |
| 1078 | int len = f->get_32(); |
no test coverage detected