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

Method fromInt

core/src/main/java/org/gagravarr/ogg/IOUtils.java:54–62  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

52 return b;
53 }
54 public static byte fromInt(int i) {
55 if(i > 256) {
56 throw new IllegalArgumentException("Number " + i + " too big");
57 }
58 if(i > 127) {
59 return (byte)(i-256);
60 }
61 return (byte)i;
62 }
63
64
65 public static int readOrEOF(InputStream stream) throws IOException {

Callers 9

getBytesMethod · 0.95
getBytesMethod · 0.95
createMethod · 0.95
addPacketMethod · 0.95
getHeaderMethod · 0.95
writeMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by 2

getBytesMethod · 0.76
getBytesMethod · 0.76