MCPcopy Create free account
hub / github.com/M66B/FairEmail / getBytes

Method getBytes

app/src/main/java/com/sun/mail/util/ASCIIUtility.java:253–261  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

251
252
253 public static byte[] getBytes(String s) {
254 char [] chars= s.toCharArray();
255 int size = chars.length;
256 byte[] bytes = new byte[size];
257
258 for (int i = 0; i < size;)
259 bytes[i] = (byte) chars[i++];
260 return bytes;
261 }
262
263 public static byte[] getBytes(InputStream is) throws IOException {
264

Callers 15

decodeWordMethod · 0.95
writeStringMethod · 0.95
writeNStringMethod · 0.95
xtextMethod · 0.95
toBytesMethod · 0.95
authClientMethod · 0.95
authServerMethod · 0.95
writelnMethod · 0.95
MimeBodyPartMethod · 0.95
writeToMethod · 0.95
parseMethod · 0.95

Calls 3

availableMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected