MCPcopy Create free account
hub / github.com/L-JINBIN/ApkDataMultiplexing / writeLong

Method writeLong

src/bin/zip/ZipUtil.java:52–64  ·  view source on GitHub ↗
(byte[] array, int pos, long value)

Source from the content-addressed store, hash-verified

50 }
51
52 public static void writeLong(byte[] array, int pos, long value) throws IOException {
53 if (pos + 8 > array.length) {
54 throw new EOFException();
55 }
56 array[pos] = (byte) (value & 0xFF);
57 array[pos + 1] = (byte) (value >>> 8 & 0xFF);
58 array[pos + 2] = (byte) (value >>> 16 & 0xFF);
59 array[pos + 3] = (byte) (value >>> 24 & 0xFF);
60 array[pos + 4] = (byte) (value >>> 32 & 0xFF);
61 array[pos + 5] = (byte) (value >>> 40 & 0xFF);
62 array[pos + 6] = (byte) (value >>> 48 & 0xFF);
63 array[pos + 7] = (byte) (value >>> 56 & 0xFF);
64 }
65
66 public static void writeBytes(byte[] array, int pos, byte[] value) throws IOException {
67 if (pos + value.length > array.length) {

Callers 2

writeHeaderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected