fix: Fix JByteBuffer

This commit is contained in:
Marc Rousavy 2023-08-23 14:45:10 +02:00
parent 521d7c8ccf
commit 3a0d7b3c91
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include <jni.h>
#include <fbjni/fbjni.h>
#include <fbjni/ByteBuffer.h>
namespace vision {
@ -61,7 +62,6 @@ local_ref<JByteBuffer> JFrame::toByteBuffer() const {
static const auto toByteBufferMethod = getClass()->getMethod<JByteBuffer()>("toByteBuffer");
return toByteBufferMethod(self());
}
}
void JFrame::incrementRefCount() {
static const auto incrementRefCountMethod = getClass()->getMethod<void()>("incrementRefCount");

View File

@ -6,6 +6,7 @@
#include <jni.h>
#include <fbjni/fbjni.h>
#include <fbjni/ByteBuffer.h>
namespace vision {