-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make BB.debugDescription print xxd -r -p compatible format
Motivation: When debugging, I often use ByteBuffer.debugDescription which dumps the bytes. Unfortunately, the format wasn't compatible with what `xxd -r -p` expects. Now you can just copy some output, for example echo '04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12' | xxd -r -p and xxd -r -p will correctly parse the byte values. Modifications: made BB.debugDescription prefix byte values under 0x10 with a 0 instead of a space. Result: easier debugging with the standard tools
- Loading branch information
Johannes Weiß
committed
Apr 27, 2018
1 parent
ec47847
commit 648de0f
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters