private static int getLengthBits ( int version , int bitsA , int bitsB , int bitsC ) { int lengthBits ; if ( version < 10 ) lengthBits = bitsA ; else if ( version < 27 ) lengthBits = bitsB ; else lengthBits = bitsC ; return lengthBits ; }
Returns the length of the message length variable in bits . Dependent on version