assemble a varint from the given byte array . concode_field_sep int STATE_BEGIN_READING concode_elem_sep int STATE_READ_CONTENTS concode_elem_sep int length concode_elem_sep byte[] scratch concode_elem_sep int state concode_elem_sep long[] VARINT_LENGTH_MASKS concode_field_sep int getLastLength concode_elem_sep void reset concode_elem_sep long readUnsignedVarint concode_elem_sep int parseUnsignedVarintLength
long function ( byte [ ] arg0 , int arg1 , boolean arg2 ) { long loc0 = arg0 [ 0 ] & 0xFFL ; if ( arg2 ) { loc0 &= ~ VARINT_LENGTH_MASKS [ arg1 - 1 ] ; } for ( int loc1 = 1 ; loc1 < arg1 ; loc1 ++ ) { loc0 = ( loc0 << 8 ) | ( arg0 [ loc1 ] & 0xFFL ) ; } return loc0 ; }