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

Method putInt4BE

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

Source from the content-addressed store, hash-verified

294 out.write(b4);
295 }
296 public static void putInt4BE(byte[] data, int offset, long v) {
297 int i = offset;
298 data[i+3] = (byte)((v >>> 0) & 0xFF);
299 data[i+2] = (byte)((v >>> 8) & 0xFF);
300 data[i+1] = (byte)((v >>> 16) & 0xFF);
301 data[i+0] = (byte)((v >>> 24) & 0xFF);
302 }
303
304 /**
305 * Gets the integer value that is stored in UTF-8 like fashion, in Big Endian

Callers 2

writeInt4BEMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected