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