MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Java_DecodeString

Function Java_DecodeString

src/android/Platform_Android.c:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void Java_DecodeString(JNIEnv* env, jstring str, cc_string* dst) {
209 const jchar* src;
210 jsize len;
211 if (!str) return;
212
213 src = (*env)->GetStringChars(env, str, NULL);
214 len = (*env)->GetStringLength(env, str);
215 String_AppendUtf16(dst, src, len * 2);
216 (*env)->ReleaseStringChars(env, str, src);
217}
218
219jobject Java_AllocString(JNIEnv* env, const cc_string* str) {
220 cc_uint8 tmp[2048 + 4];

Callers 7

java_processKeyTextFunction · 0.85
Clipboard_GetTextFunction · 0.85
java_processOFDResultFunction · 0.85
Platform_ShareScreenshotFunction · 0.85
Directory_GetCachePathFunction · 0.85
GetDeviceUUIDFunction · 0.85

Calls 1

String_AppendUtf16Function · 0.85

Tested by

no test coverage detected