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

Method get_unicode_string

compat/resource_compat_binary.cpp:1085–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085String ResourceLoaderCompatBinary::get_unicode_string() {
1086 int len = f->get_32();
1087 if (len > str_buf.size()) {
1088 str_buf.resize(len);
1089 }
1090 if (len == 0) {
1091 return String();
1092 }
1093 f->get_buffer((uint8_t *)&str_buf[0], len);
1094 return String::utf8(&str_buf[0], len);
1095}
1096
1097void ResourceLoaderCompatBinary::get_classes_used(Ref<FileAccess> p_f, HashSet<StringName> *p_classes) {
1098 open(p_f, false, true);

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
get_bufferMethod · 0.45

Tested by

no test coverage detected