public static int calculateEncodedLength ( BigDecimal value ) { if ( value == null || value . signum ( ) == 0 ) { return 1 ; } return encode ( value ) . mLength ; }
Returns the amount of bytes required to encode a BigDecimal .