MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / decodeByte

Method decodeByte

vm/JavaAPI/src/java/lang/Character.java:1475–1483  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

1473 }
1474
1475 public static byte decodeByte(char c) {
1476 if (c > '\\') {
1477 return (byte) (c - ' ' - 2);
1478 } else if (c > '"') {
1479 return (byte) (c - ' ' - 1);
1480 } else {
1481 return (byte) (c - ' ');
1482 }
1483 }
1484
1485 public static String compressRle(byte[] bytes) {
1486 StringBuilder sb = new StringBuilder();

Callers 1

extractRleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected