MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / GetStringDataAndUtf16Length

Method GetStringDataAndUtf16Length

Bcore/src/main/cpp/dex/dex_file-inl.h:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35inline const char* DexFile::GetStringDataAndUtf16Length(const StringId& string_id,
36 uint32_t* utf16_length) const {
37 DCHECK(utf16_length != nullptr) << GetLocation();
38 const uint8_t* ptr = DataBegin() + string_id.string_data_off_;
39 *utf16_length = DecodeUnsignedLeb128(&ptr);
40 return reinterpret_cast<const char*>(ptr);
41}
42
43inline const char* DexFile::GetStringData(const StringId& string_id) const {
44 uint32_t ignored;

Callers

nothing calls this directly

Calls 1

DecodeUnsignedLeb128Function · 0.85

Tested by

no test coverage detected