MCPcopy Create free account
hub / github.com/bytedance/bolt / StringView

Method StringView

bolt/type/StringView.h:68–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 static constexpr size_t kInlineSize = 12;
67
68 StringView() {
69 static_assert(sizeof(StringView) == 16);
70 memset(this, 0, sizeof(StringView));
71 }
72
73 StringView(const char* data, int32_t len) {
74 set(data, len);

Callers 1

createStringViewArrayFunction · 0.45

Calls 3

memsetFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected