[DiscordArchive] Can you show example code for that?
[DiscordArchive] Can you show example code for that?
Archived author: Skarn • Posted: 2018-06-03T20:55:42.217000+00:00
Original source
Can you show example code for that?
Archived author: Skarn • Posted: 2018-06-03T20:55:42.711000+00:00
Original source
read first 8 bits from it
read next 7 bits from it
read one last bit
Archived author: Skarn • Posted: 2018-06-03T20:55:49.677000+00:00
Original source
I will do what template does myself.
Archived author: Kavligula • Posted: 2018-06-03T20:56:03.517000+00:00
Original source
So you want to read the first 8 bits which would just be a bitmask of
Archived author: Kavligula • Posted: 2018-06-03T20:56:07.335000+00:00
Original source
11111111 right
Archived author: Kavligula • Posted: 2018-06-03T20:56:15.947000+00:00
Original source
So you'd mask it over the values using an and
Archived author: Kavligula • Posted: 2018-06-03T20:56:30.564000+00:00
Original source
So it'd be like value_you_want_to_see & 11111111
Archived author: Kavligula • Posted: 2018-06-03T20:56:35.944000+00:00
Original source
And that would return the first 8 bits
Archived author: Skarn • Posted: 2018-06-03T20:56:44.599000+00:00
Original source
ok, get it
Archived author: Kavligula • Posted: 2018-06-03T20:56:52.679000+00:00
Original source
Then you'd shift to the next seven bits of the mask by going