-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Base types #20
Base types #20
Conversation
140b7f2
to
6a2fa60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@santiagoboterokommit Uint8Array is similar to an Array where each item is an 8-bit (1 byte) unsigned integer. Uint8Arrays cannot change size after creation (this is not a problem since the elixir struct does not mutate).
That said, your structure could receive two types of data:
- A list of positive integers.
- A binary buffer that must be read from left to right every 1 byte and thus obtain the unsigned integer.
Note: be sure to handle the binary offset correctly.
c9254a7
to
8094b1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@santiagoboterokommit well job done 💪 !
8094b1f
to
979af81
Compare
Description
Fixes #11
Type of change
Checklist