Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem when using jbyteArray (C++) and byte array (Java)

Problem when using jbyteArray (C++) and byte array (Java)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 563 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Damalo_02
    wrote on 16 May 2019, 10:36 last edited by
    #1

    Hello,
    I need to use a byte array, created in C++ part, as an argument of a Java function.

    In C++ part, I create my jbyteArray and pass it as argument :
    0_1558002296556_82d020d8-e2e7-4f46-a0ac-3baf934c00be-image.png

    Then in Java part I try to use my byte array but it dosen't work :
    0_1558002472912_79ef10be-ac42-4d14-9038-25cb68619822-image.png

    So I try to print values of my byte array in C++ and Java part :

    C++
    0_1558002561803_504ea1e5-4fc4-4cf5-a39b-17dc5ee9d336-image.png

    Java
    0_1558002584320_3cf6f947-74cd-489a-9535-b7cd76d30927-image.png

    I don't understand why I get this value in the Java part.
    If someone has any idea.

    Thanks

    1 Reply Last reply
    0

    1/1

    16 May 2019, 10:36

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved