MCPcopy Create free account
hub / github.com/HumbleUI/Skija / U16String

Class U16String

shared/java/U16String.java:10–41  ·  view source on GitHub ↗

Java mirror of std::vector<jchar> (UTF-16)

Source from the content-addressed store, hash-verified

8 * Java mirror of std::vector<jchar> (UTF-16)
9 */
10public class U16String extends Managed {
11 static { Library.staticLoad(); }
12
13 @ApiStatus.Internal
14 public U16String(long ptr) {
15 super(ptr, _FinalizerHolder.PTR);
16 }
17
18 public U16String(String s) {
19 this(_nMake(s));
20 Stats.onNativeCall();
21 }
22
23 @Override
24 public String toString() {
25 try {
26 Stats.onNativeCall();
27 return _nToString(_ptr);
28 } finally {
29 ReferenceUtil.reachabilityFence(this);
30 }
31 }
32
33 @ApiStatus.Internal
34 public static class _FinalizerHolder {
35 public static final long PTR = _nGetFinalizer();
36 }
37
38 @ApiStatus.Internal public static native long _nMake(String s);
39 @ApiStatus.Internal public static native long _nGetFinalizer();
40 @ApiStatus.Internal public static native String _nToString(long ptr);
41}

Callers

nothing calls this directly

Calls 1

staticLoadMethod · 0.95

Tested by

no test coverage detected