MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / GetStringUTFChars

Method GetStringUTFChars

framework/utils/Android/GetStringUTFChars.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "JniException.h"
8
9GetStringUTFChars::GetStringUTFChars(JNIEnv *pEnv, jstring source)
10{
11 if (source == nullptr || pEnv == nullptr) {
12 mEnv = nullptr;
13 mResult = nullptr;
14 } else {
15 mSource = source;
16 mEnv = pEnv;
17 mResult = const_cast<char *>(pEnv->GetStringUTFChars(source, nullptr));
18 JniException::clearException(mEnv);
19 }
20}
21
22GetStringUTFChars::~GetStringUTFChars()
23{

Callers 1

uuid_get_uuidFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected