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

6
LINES

< > BotCompany Repo | #1011527 // charToBytes

JavaX fragment (include)

static byte[] charToBytes(char c) {
  ret new byte[] {
    (byte) (c >>> 8),
    (byte) c
  };
}

Author comment

Began life as a copy of #1002912

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1011527
Snippet name: charToBytes
Eternal ID of this version: #1011527/1
Text MD5: 90e999b7d22f90315979772a4248905e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-30 23:33:13
Source code size: 101 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 421 / 441
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)