Libraryless. Click here for Pure Java version (5326L/29K).
1 | sS singleDigitBytesToString(ByteBuffer l) {
|
2 | if (l == null) null; |
3 | int n = l.size(); |
4 | char[] data = new char[n]; |
5 | for i to n: |
6 | data[i] = (char) ('0' + ubyteToInt(l.get(i)) % 10);
|
7 | ret str(data); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034076 |
| Snippet name: | singleDigitBytesToString |
| Eternal ID of this version: | #1034076/2 |
| Text MD5: | f714136053596f2e7da83935855e3de3 |
| Transpilation MD5: | 0734a814e22b4bd74277456380985cbf |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-21 03:52:17 |
| Source code size: | 211 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 361 / 451 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |