#NEWLINE# def calculate_size( uuid , address , interrupt ) : #NEWLINE# #INDENT# ' Calculates the request payload size' #NEWLINE# data_size = 0 #NEWLINE# data_size += calculate_size_str ( uuid ) #NEWLINE# data_size += calculate_size_address ( address ) #NEWLINE# data_size += BOOLEAN_SIZE_IN_BYTES #NEWLINE# return data_size