MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeUTF16

Method makeUTF16

valdi_core/src/valdi_core/cpp/Utils/StaticString.cpp:161–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161Ref<StaticString> StaticString::makeUTF16(size_t size) {
162 StaticStringAllocator allocator;
163 return allocator.allocate(size * sizeof(char16_t), size, Encoding::UTF16);
164}
165
166Ref<StaticString> StaticString::makeUTF32(size_t size) {
167 StaticStringAllocator allocator;

Callers

nothing calls this directly

Calls 2

allocateMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected