def calculate_size(name, thread_id):
    """ Calculates the request payload size"""
    data_size = 0
    data_size += calculate_size_str(name)
    data_size += LONG_SIZE_IN_BYTES
    return data_size
def calculate_size ( name , thread_id ) : data_size = 0 data_size += calculate_size_str ( name ) data_size += LONG_SIZE_IN_BYTES return data_size
Calculates the request payload size