Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BooleanByReference #721

Closed
elect86 opened this issue Oct 31, 2016 · 4 comments
Closed

BooleanByReference #721

elect86 opened this issue Oct 31, 2016 · 4 comments

Comments

@elect86
Copy link
Contributor

elect86 commented Oct 31, 2016

I am doing the kotlin port of openvr

I saw a couple of bool *, like here.

I am using right now a ByteByReference (for bool I am using simply boolean), but I was wondering if it could be possibile to emulate also those with a proper BooleanByReference class

@twall
Copy link
Contributor

twall commented Oct 31, 2016

You'd probably want it to be BoolByReference and use Native.BOOL_SIZE to
set it up. This wasn't initially included b/c support for checking the
size of "bool" was only recently introduced.

On Mon, Oct 31, 2016 at 4:03 AM, Giuseppe Barbieri <[email protected]

wrote:

I am doing the kotlin port https://github.com/elect86/openvr of openvr
https://github.com/ValveSoftware/openvr

I saw a couple of bool *, like here
https://github.com/ValveSoftware/openvr/blob/master/headers/openvr.h#L2471
.

I am using right now a ByteByReference (for bool I am using simply boolean),
but I was wondering if it could be possibile to emulate also those with a
proper BooleanByReference class


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#721, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAuMrZnRSGjTW_HU44VyYS3HtPspI2YBks5q5aC8gaJpZM4KkwoK
.

@elect86
Copy link
Contributor Author

elect86 commented Nov 1, 2016

Yes.

But I can't find it in 4.2.2 .. has it been introduced later than that?

@twall
Copy link
Contributor

twall commented Nov 1, 2016

BoolByReference doesn't exist. You'd need to submit a PR (and tests) to
get it added :)

On Tue, Nov 1, 2016 at 3:51 AM, Giuseppe Barbieri [email protected]
wrote:

Yes.

But I can't find it in 4.2.2 .. has it been introduced later than that?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#721 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAuMrZUix2vPTs0CG7qg3bYWlwlxcIIYks5q5u9mgaJpZM4KkwoK
.

@elect86
Copy link
Contributor Author

elect86 commented Aug 8, 2017

It seems implemented.

Thanks to everyone 👍

@elect86 elect86 closed this as completed Aug 8, 2017
mstyura pushed a commit to mstyura/jna that referenced this issue Sep 9, 2024
Motivation:

We need to also retain a mapping for the original dcid as there might be
multiple INITIAL packets

Modifications:

Correctly add mapping for original dcid

Result:

Be able to handle multiple INITIAL packets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants