public long readU32 ( ) throws WireParseException { require ( 4 ) ; int b1 = array [ pos ++ ] & 0xFF ; int b2 = array [ pos ++ ] & 0xFF ; int b3 = array [ pos ++ ] & 0xFF ; int b4 = array [ pos ++ ] & 0xFF ; return ( ( ( long ) b1 << 24 ) + ( b2 << 16 ) + ( b3 << 8 ) + b4 ) ; }
Reads an unsigned 32 bit value from the stream as a long .