MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / save_ustring

Function save_ustring

compat/resource_compat_binary.cpp:1071–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069}
1070
1071static 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
1077static String get_ustring(Ref<FileAccess> f) {
1078 int len = f->get_32();

Callers 2

rename_dependenciesMethod · 0.85
set_uidMethod · 0.85

Calls 3

lengthMethod · 0.80
store_bufferMethod · 0.45
get_dataMethod · 0.45

Tested by

no test coverage detected