Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1034076 // singleDigitBytesToString

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5326L/29K).

sS singleDigitBytesToString(ByteBuffer l) {
  if (l == null) null;
  int n = l.size();
  char[] data = new char[n];
  for i to n:
    data[i] = (char) ('0' + ubyteToInt(l.get(i)) % 10);
  ret str(data);
}

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: 58 / 93
Version history: 1 change(s)
Referenced in: [show references]