-
Notifications
You must be signed in to change notification settings - Fork 648
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
ByteBuffer should have hex bytes initialiser / write method #2748
Comments
I have taken a look and would like to pick this up after #2734. |
Of course this should also parse the |
@ali-ahsan-ali are you still interested in this? |
Happy if someone else is eager to give it a go. I have started looking at it but no real progress. It feels overly ambitious to try and start working on a second PR when my first has taken quite a while. |
I did re-request review on your other PR. Remember to click the ♻️ (re-request) review once you addressed the changed suggested/requested. I'm sure @FranzBusch & @Lukasa just missed that you pushed updates to your existing PR. Separately, if you're up for it, you can totally have multiple PRs open at the same time, shouldn't slow things down. |
The "good for newcomers" in this repo are the hardest thing ever 😅 (which I VERY much enjoy). Experimenting with the below and seeing if writing that to the buffer is the right outcome for writing a hex encoded string to buffer.
TLDR: Thanks for the motivation/push. Working on it! |
Awesome, FWIW, you can use
to get a sequence of |
@weissi please take a look at the PR when you find the time |
Add ability for below two functions `ByteBuffer(hexEncodedBytes: "68 65 6c 6c 6f 20 77 6f 72 6c 64 0a")` ` buffer.writeHexEncodedBytes("68656c6c6f20776f726c640a")` ### Motivation: #2748 --------- Co-authored-by: Ali Ali <[email protected]> Co-authored-by: Cory Benfield <[email protected]>
I think this can be closed now |
This is pretty much a companion of #2447 / #2475. The aforementioned bugs/patches introduce the ability to get the hex dump from a
ByteBuffer
which is awesome.Next, I'd like to construct/write into a
ByteBuffer
from a hex dump:ByteBuffer(hexEncodedBytes: "68 65 6c 6c 6f 20 77 6f 72 6c 64 0a")
buffer.writeHexEncodedBytes("68656c6c6f20776f726c640a")
I'd say it just needs to support the
.plain
format (i.e. 2 hex-digit values with whitespace ignored)Super basic test:
another one:
The text was updated successfully, but these errors were encountered: