def METHOD_NAME(self, options):
    # options is an array of tuples: ('name',value)
    answer = b''
    for name, value in options:
        code,format = self.options[name]
        val = self.pack(format, value)
        answer += b'%c%c%s' % (code, len(val), val)
    return answer