code: @Implementation(minSdk = P)
    protected static int nativeAssetReadChar(long asset_ptr) {
      Asset asset = Registries.NATIVE_ASSET_REGISTRY.getNativeObject(asset_ptr);
      byte[] b = new byte[1];
      int res = asset.read(b, 1);
      return res == 1 ? (int) (b[0]) & 0xff : -1;
    }
docs: static jint NativeAssetReadChar(JNIEnv* /*env*/, jclass /*clazz*/, jlong asset_ptr) {