public static void writeMediumInt ( IoBuffer out , int value ) { byte [ ] bytes = new byte [ 3 ] ; bytes [ 0 ] = ( byte ) ( ( value >>> 16 ) & 0x000000FF ) ; bytes [ 1 ] = ( byte ) ( ( value >>> 8 ) & 0x000000FF ) ; bytes [ 2 ] = ( byte ) ( value & 0x00FF ) ; out . put ( bytes ) ; }
Writes a Medium Int to the output buffer