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

Method writeShort

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

Source from the content-addressed store, hash-verified

42 }
43
44 public static void writeShort(byte[] array, int pos, int value) throws IOException {
45 if (pos + 2 > array.length) {
46 throw new EOFException();
47 }
48 array[pos] = (byte) (value & 0xFF);
49 array[pos + 1] = (byte) (value >>> 8 & 0xFF);
50 }
51
52 public static void writeLong(byte[] array, int pos, long value) throws IOException {
53 if (pos + 8 > array.length) {

Callers 2

setMethod · 0.95
generateAESExtraMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected