{"action":"created","issue":{"url":"https://api.github.com/repos/java-native-access/jna/issues/691","repository_url":"https://api.github.com/repos/java-native-access/jna","labels_url":"https://api.github.com/repos/java-native-access/jna/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/691/comments","events_url":"https://api.github.com/repos/java-native-access/jna/issues/691/events","html_url":"https://github.com/java-native-access/jna/issues/691","id":171735137,"number":691,"title":"How to convert ByReference to ByValue","user":{"login":"dhoehmann","id":10656433,"avatar_url":"https://avatars.githubusercontent.com/u/10656433?v=3","gravatar_id":"","url":"https://api.github.com/users/dhoehmann","html_url":"https://github.com/dhoehmann","followers_url":"https://api.github.com/users/dhoehmann/followers","following_url":"https://api.github.com/users/dhoehmann/following{/other_user}","gists_url":"https://api.github.com/users/dhoehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/dhoehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhoehmann/subscriptions","organizations_url":"https://api.github.com/users/dhoehmann/orgs","repos_url":"https://api.github.com/users/dhoehmann/repos","events_url":"https://api.github.com/users/dhoehmann/events{/privacy}","received_events_url":"https://api.github.com/users/dhoehmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T19:03:45Z","updated_at":"2016-08-26T18:29:32Z","closed_at":"2016-08-26T18:29:32Z","body":"I call a function 'A' passing a struct by reference\r\nafterwards I need to pass the same struct to another function 'B' by value\r\nIs there a simpler way than copying the struct?\r\nI've tried a couple of different declarations (specifying or leavin out '.ByReference'), different variable declarations - but nothing worked"},"comment":{"url":"https://api.github.com/repos/java-native-access/jna/issues/comments/242814602","html_url":"https://github.com/java-native-access/jna/issues/691#issuecomment-242814602","issue_url":"https://api.github.com/repos/java-native-access/jna/issues/691","id":242814602,"user":{"login":"matthiasblaesing","id":2179736,"avatar_url":"https://avatars.githubusercontent.com/u/2179736?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasblaesing","html_url":"https://github.com/matthiasblaesing","followers_url":"https://api.github.com/users/matthiasblaesing/followers","following_url":"https://api.github.com/users/matthiasblaesing/following{/other_user}","gists_url":"https://api.github.com/users/matthiasblaesing/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasblaesing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasblaesing/subscriptions","organizations_url":"https://api.github.com/users/matthiasblaesing/orgs","repos_url":"https://api.github.com/users/matthiasblaesing/repos","events_url":"https://api.github.com/users/matthiasblaesing/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasblaesing/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T18:29:32Z","updated_at":"2016-08-26T18:29:32Z","body":"You can rewrap the structure - getPointer() gives you the Pointer to the structure. Then it depends on the implementation of the bound structure. Either the structure defines an Constructor that takes a pointer or you can instantiate a new instance via Structure.newInstance(<clazz>, <pointer>).\r\n\r\nFor general questions please use the google group:\r\n\r\nhttps://groups.google.com/forum/#!forum/jna-users"}}
{"actor":{"display_login":"matthiasblaesing"}}