MCPcopy Create free account
hub / github.com/Gagravarr/VorbisJava / writeInt2BE

Method writeInt2BE

core/src/main/java/org/gagravarr/ogg/IOUtils.java:268–272  ·  view source on GitHub ↗
(OutputStream out, int v)

Source from the content-addressed store, hash-verified

266
267
268 public static void writeInt2BE(OutputStream out, int v) throws IOException {
269 byte[] b2 = new byte[2];
270 putInt2BE(b2, 0, v);
271 out.write(b2);
272 }
273 public static void putInt2BE(byte[] data, int offset, int v) {
274 int i = offset;
275 data[i+1] = (byte)((v >>> 0) & 0xFF);

Callers 2

writeMethod · 0.95
writeMethod · 0.95

Calls 2

putInt2BEMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected