-
Notifications
You must be signed in to change notification settings - Fork 30
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
Convert BitStream to String #89
Comments
It's quite easy to do, you can use PR_BITS to get an arbitrary amount of bits and then format them as hex in a loop. Note that raknet bitstreams are neither aligned nor padded. Meaning single bits (ie. bool) will cause the rest of the data to no longer be aligned with the half-byte or byte boundaries of the displayed hex (one single digit in hex represents 4 bits of data). I made this some time ago, you can use it if you still need it.
|
Hello!
Is it possible to get all the data from BitStream in the form of HEX (as an example 42A1F5A1AA363F ...) as a string?
The text was updated successfully, but these errors were encountered: