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

5
LINES

< > BotCompany Repo | #1035670 // toUByte - fails if not convertible

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

Libraryless. Click here for Pure Java version (9589L/54K).

1  
static byte toUByte(int i) {
2  
  if (!isUByte(i))
3  
    fail("Not a u-byte: " + i);
4  
  ret (byte) i;
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035670
Snippet name: toUByte - fails if not convertible
Eternal ID of this version: #1035670/1
Text MD5: 01804ee70d19cdda380a7256a027b463
Transpilation MD5: a6864b6d24f3caa89adfef13c64f9a37
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-03 00:22:28
Source code size: 101 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 193
Referenced in: [show references]