MCPcopy Create free account
hub / github.com/Ramos-dev/OSSTunnel / getBitStr

Method getBitStr

client/src/main/java/Lucian.java:349–360  ·  view source on GitHub ↗
(char i)

Source from the content-addressed store, hash-verified

347
348
349 public static String getBitStr(char i) {
350 int ascii = (int) i;
351
352 StringBuilder s = new StringBuilder(Integer.toBinaryString(ascii));
353 if (s.length() < 8) {
354 int zeroCount = 8 - s.length();
355 for (int j = 0; j < zeroCount; j++) {
356 s.insert(0, '0');
357 }
358 }
359 return s.toString();
360 }
361
362 public static void selfDestory() {
363

Callers 1

enCode64Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected