def METHOD_NAME(self) -> int:
    length_in_bits: int = 0
    _value: ModbusPDUReadFileRecordResponseItem = self
    # Implicit Field (dataLength)
    length_in_bits += 8
    # Simple field (referenceType)
    length_in_bits += 8
    # Array field
    if self.data != None:
        length_in_bits += 8 * len(self.data)
    return length_in_bits