I know that in Java you use Bytebuffer .limit() but I'm not sure how to do it in c++. Thanks! ☺
Here is part of the code:
float _proj[16];
float _projb[1];
//this->_proj.flip().limit(16);
swap(_proj, _projb);
this->_proj.get(this->proj);
I used std::swap method instead of flip since there ins't ByteBuffer in c++.