MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / rep_from_data

Function rep_from_data

system/lib/libcxx/src/include/refstring.h:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46inline _Rep_base* rep_from_data(const char* data_) noexcept {
47 char* data = const_cast<char*>(data_);
48 return reinterpret_cast<_Rep_base*>(data - sizeof(_Rep_base));
49}
50
51inline char* data_from_rep(_Rep_base* rep) noexcept {
52 char* data = reinterpret_cast<char*>(rep);

Callers 3

__libcpp_refstringMethod · 0.85
refstring.hFile · 0.85
~__libcpp_refstringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected