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

Method toInt

core/src/main/java/org/gagravarr/ogg/IOUtils.java:49–53  ·  view source on GitHub ↗
(byte b)

Source from the content-addressed store, hash-verified

47
48
49 public static int toInt(byte b) {
50 if(b < 0)
51 return b & 0xff;
52 return b;
53 }
54 public static byte fromInt(int i) {
55 if(i > 256) {
56 throw new IllegalArgumentException("Number " + i + " too big");

Callers 7

FlacFirstOggPacketMethod · 0.95
FlacInfoMethod · 0.95
getDataSizeMethod · 0.95
hasContinuationMethod · 0.95
nextMethod · 0.95
getNumberOfCodebooksMethod · 0.95
VorbisInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected