| 2399 | } |
| 2400 | |
| 2401 | void ResourceFormatSaverCompatBinaryInstance::save_unicode_string(Ref<FileAccess> p_f, const String &p_string, bool p_bit_on_len) { |
| 2402 | CharString utf8 = p_string.utf8(); |
| 2403 | if (p_bit_on_len) { |
| 2404 | p_f->store_32(uint32_t((utf8.length() + 1) | 0x80000000)); |
| 2405 | } else { |
| 2406 | p_f->store_32(uint32_t(utf8.length() + 1)); |
| 2407 | } |
| 2408 | p_f->store_buffer((const uint8_t *)utf8.get_data(), utf8.length() + 1); |
| 2409 | } |
| 2410 | |
| 2411 | int ResourceFormatSaverCompatBinaryInstance::get_string_index(const String &p_string) { |
| 2412 | StringName s = p_string; |
nothing calls this directly
no test coverage detected