I am transferring byte buffer data from the C++ function to java method trough the JNI.
As I read in one article(Shared Memory between two JVMs). mappedByteBuffer allows to read the data from memory, but it will load the file into memory. I don't want to use file because byte buffer get filled in C++ from remote source, if I use file it will overhead the file reading and writing calls and degrades the performance, so eliminating the MappedByteBuffer
My use case: Is there any mechanism in java to read the byte array at the particular offset? How to share the memory between c++ function and java method in same process? or Do we have any mechanism to assign specified offset to the byte array variable in java
Thanks in advance...