]> rtime.felk.cvut.cz Git - orte.git/commit
JORTE: move common stuff to getString() function
authorMartin Vajnar <martin.vajnar@gmail.com>
Sat, 2 May 2015 12:36:28 +0000 (14:36 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Fri, 22 May 2015 11:33:21 +0000 (13:33 +0200)
commit90f39d3d62b4e6227c169edd87d9f276a27f9cb0
tree30ad79b3ff519ed48b5a5f78bd8343607eb0528c
parent9c65c6f11528c6428b1452a85c8290787874c5d2
JORTE: move common stuff to getString() function

Create getString() function, that first determines size of char pointer,
then fetches the appropriate number of bytes from the helper buffer and
stores them in an appropriate Java primitive data type. When the pointer
is retrieved native get_string() function is passed the pointer and
it returns Java String object encapsulating the requested C string.
orte/java/src/org/ocera/orte/types/RecvInfo.java