Error while initialising object of C++ in Rust passing using FFI

I have tried this earlier aswell the values are not being mapped correctly.
I have tried it now again as you said and the output is this:

inside rust
10
32 0 0 0
1273538208 32767 1274816548 32641
1220635728 22047 0 0
0 22047 -1819484088 22047

isn't it if I pass a pointer from rust i will have to call rust again to deallocate the memory to avoid memory leakage
for reference: