Buffer.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2015 Zhang Rui <bbcallen@gmail.com>
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*
  17. * https://github.com/Bilibili/jni4android
  18. * This file is automatically generated by jni4android, do not modify.
  19. */
  20. #include "Buffer.h"
  21. typedef struct J4AC_java_nio_Buffer {
  22. jclass id;
  23. } J4AC_java_nio_Buffer;
  24. static J4AC_java_nio_Buffer class_J4AC_java_nio_Buffer;
  25. int J4A_loadClass__J4AC_java_nio_Buffer(JNIEnv *env)
  26. {
  27. int ret = -1;
  28. const char *J4A_UNUSED(name) = NULL;
  29. const char *J4A_UNUSED(sign) = NULL;
  30. jclass J4A_UNUSED(class_id) = NULL;
  31. int J4A_UNUSED(api_level) = 0;
  32. if (class_J4AC_java_nio_Buffer.id != NULL)
  33. return 0;
  34. sign = "java/nio/Buffer";
  35. class_J4AC_java_nio_Buffer.id = J4A_FindClass__asGlobalRef__catchAll(env, sign);
  36. if (class_J4AC_java_nio_Buffer.id == NULL)
  37. goto fail;
  38. J4A_ALOGD("J4ALoader: OK: '%s' loaded\n", "java.nio.Buffer");
  39. ret = 0;
  40. fail:
  41. return ret;
  42. }