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

Uint get method #156

Open
PertsevRoman opened this issue May 11, 2019 · 2 comments
Open

Uint get method #156

PertsevRoman opened this issue May 11, 2019 · 2 comments
Milestone

Comments

@PertsevRoman
Copy link
Contributor

PertsevRoman commented May 11, 2019

There isn't get method for uint (although the corresponds method in GSTSTRUCTURE_API exists)

boolean gst_structure_get_uint(Structure structure, String fieldname, int[] value);

When we try to use integer method it fails too

@PertsevRoman
Copy link
Contributor Author

PertsevRoman commented May 11, 2019

Shall I use Integer.toUnsignedString internally? Or leave decision to developer?

@PertsevRoman PertsevRoman changed the title GstStructure getBoolean error, uint get method Uint get method May 11, 2019
@neilcsmith-net
Copy link
Member

Why to String? Could keep as is (but carefully documented!) or consider Integer::toUnsignedLong ? https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html#toUnsignedLong-int-

@neilcsmith-net neilcsmith-net added this to the 1.4 milestone Nov 3, 2020
@neilcsmith-net neilcsmith-net modified the milestones: 1.4, 1.5 Jan 8, 2021
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