#NEWLINE# def calculate_size( name , thread_id , lock_name ) : #NEWLINE# #INDENT# ' Calculates the request payload size' #NEWLINE# data_size = 0 #NEWLINE# data_size += calculate_size_str ( data_size ) #NEWLINE# data_size += LONG_SIZE_IN_BYTES #NEWLINE# data_size += calculate_size_str ( lock_name ) #NEWLINE# return data_size