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

Add Reader.getUIntExact with overflow check #14

Open
aslesarenko opened this issue Oct 2, 2019 · 0 comments
Open

Add Reader.getUIntExact with overflow check #14

aslesarenko opened this issue Oct 2, 2019 · 0 comments

Comments

@aslesarenko
Copy link
Collaborator

Currently we have getUInt: Long which is used either as 'getUInt().toInt' or in a best case as getUInt().toIntExact

To to simplify and also better format validation we need to add

def getUIntExact: Int = getUInt().toIntExact to the Reader.

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

1 participant