I would like to pass a chunk of data from application layer(Java) to native code(C++) using shared memory. My idea of passing data is