MCPcopy Create free account
hub / github.com/HexHive/NASS / makeStaticData

Method makeStaticData

binderlib/include/utils/String16.h:179–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 */
178 template <size_t N>
179 static constexpr const StaticData<N> makeStaticData(const char16_t (&s)[N]) {
180 StaticData<N> r;
181 // The 'size' field is at the same location where mClientMetadata would
182 // be for a SharedBuffer. We do NOT set kIsSharedBufferAllocated flag
183 // here.
184 for (size_t i = 0; i < N - 1; ++i) r.data[i] = s[i];
185 return r;
186 }
187
188 template <size_t N>
189 explicit constexpr String16(const StaticData<N>& s) : mString(s.data) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected