calculate length of tag , including type when explicit , but without length of prefix or type , when implicit . concode_field_sep String name concode_elem_sep int tagType concode_elem_sep int tagNumber concode_elem_sep boolean constructed concode_elem_sep boolean optional concode_elem_sep int tagClass concode_elem_sep boolean explicit concode_field_sep void readTag concode_elem_sep void readTag concode_elem_sep String tagClassToString concode_elem_sep int calculateLengthOfLength concode_elem_sep String tagTypeOrNumberToString concode_elem_sep void writeTag concode_elem_sep BerType readBerType concode_elem_sep void writeBerType concode_elem_sep Tag copyFrom concode_elem_sep void writeTagValuePayload concode_elem_sep Tag deepCopy concode_elem_sep Tag deepCopy concode_elem_sep boolean isValueSet concode_elem_sep boolean isTypeValid concode_elem_sep boolean isTypeValid concode_elem_sep void writeTagValue concode_elem_sep long calculateFullLength concode_elem_sep String toString concode_elem_sep int calculateLengthOfTagTypeOrTagNumber concode_elem_sep boolean isMustBeWritten concode_elem_sep void readTagValue concode_elem_sep void readTagValue concode_elem_sep long calculateLengthOfValuePayload
long function ( ) { if ( ! isMustBeWritten ( ) ) return 0 ; long loc0 = calculateLengthOfValuePayload ( ) ; if ( explicit ) { loc0 += calculateLengthOfTagTypeOrTagNumber ( tagType ) + calculateLengthOfLength ( loc0 ) ; } return loc0 ; }