public static int readUnsignedMediumInt ( IoBuffer in ) { byte [ ] bytes = new byte [ 3 ] ; in . get ( bytes ) ; int val = 0 ; val += ( bytes [ 0 ] & 0xFF ) * 256 * 256 ; val += ( bytes [ 1 ] & 0xFF ) * 256 ; val += ( bytes [ 2 ] & 0xFF ) ; return val ; }
Reads an unsigned Medium Int from the in buffer