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

Method checkHeader

app/src/main/java/com/dctimer/util/Utils.java:424–432  ·  view source on GitHub ↗
(byte[] buf)

Source from the content-addressed store, hash-verified

422 }
423
424 private static boolean checkHeader(byte[] buf) {
425 if (buf.length < 16) return false;
426 byte[] head = "SQLite format 3".getBytes();
427 for (int i = 0; i < 15; i++) {
428 if (buf[i] != head[i]) return false;
429 }
430 if (buf[15] != 0) return false;
431 return true;
432 }
433
434 public static void addSection(Map<Integer, String> header, List<Map<String, Object>> cells, String head, String[] title, int[] type, Object[] detail, int[] progress) {
435 header.put(cells.size(), head);

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected