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

Method putInt2BE

core/src/main/java/org/gagravarr/ogg/IOUtils.java:273–277  ·  view source on GitHub ↗
(byte[] data, int offset, int v)

Source from the content-addressed store, hash-verified

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);
276 data[i+0] = (byte)((v >>> 8) & 0xFF);
277 }
278
279 public static void writeInt3BE(OutputStream out, long v) throws IOException {
280 byte[] b3 = new byte[3];

Callers 3

getDataMethod · 0.95
writeInt2BEMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected