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

Method NewByteArray

framework/utils/Android/NewByteArray.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10NewByteArray::NewByteArray(JNIEnv *pEnv, const void *source, int len)
11{
12 if (source == nullptr || pEnv == nullptr) {
13 mResult = nullptr;
14 mEnv = nullptr;
15 } else {
16 mEnv = pEnv;
17 mResult = pEnv->NewByteArray(len);
18 pEnv->SetByteArrayRegion(mResult, 0, len, (jbyte *) (source));
19 JniException::clearException(mEnv);
20 }
21}
22
23NewByteArray::~NewByteArray()
24{

Callers 10

requestProvisionMethod · 0.45
requestKeyMethod · 0.45
device_write_internalMethod · 0.45
queueInputBufferMethod · 0.45
ReadMethod · 0.45
onLogCallbackMethod · 0.45
java_OnRequestKeyMethod · 0.45
jni_onCaptureScreenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected