MCPcopy Create free account
hub / github.com/MeigenChou/DCTimer-Android / read

Method read

app/src/main/java/solver/Utils.java:296–303  ·  view source on GitHub ↗
(char[] arr, InputStream in)

Source from the content-addressed store, hash-verified

294
295 //data storage
296 public static void read(char[] arr, InputStream in) throws IOException {
297 int len = arr.length;
298 byte[] buf = new byte[len * 2];
299 in.read(buf);
300 for (int i = 0; i < len; i++) {
301 arr[i] = (char) ((buf[i * 2] & 0xff) | ((buf[i * 2 + 1] << 8) & 0xff00));
302 }
303 }
304
305 public static void read(int[] arr, InputStream in) throws IOException {
306 int len = arr.length;

Callers 5

runMethod · 0.80
doInBackgroundMethod · 0.80
runMethod · 0.80
initMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected