(String seq, int len)
| 62 | private static final float LOW_COMPLEXITY_THRESHOLD_LONG_SEQ = 0.89f; |
| 63 | |
| 64 | public static final byte[] stringToBytes(String seq, int len) { |
| 65 | byte[] arr = new byte[len]; |
| 66 | |
| 67 | byte b; |
| 68 | for (int i=0; i<len; ++i) { |
| 69 | b = (byte) seq.charAt(i); |
| 70 | if (b == CHAR_U_INT) { |
| 71 | arr[i] = CHAR_T_INT; |
| 72 | } |
| 73 | else { |
| 74 | arr[i] = b; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | return arr; |
| 79 | } |
| 80 | |
| 81 | public static final String bytesToString(byte[] bytes, int len) { |
| 82 | StringBuilder sb = new StringBuilder(len); |
no outgoing calls
no test coverage detected