def METHOD_NAME(self, buf):
    values = []
    for i in range(len(buf)):
        values.append("0X{0:02X}".format(buf[i]))
    if self.modify_bytes != {}:
        for k in self.modify_bytes:
            values[k] = "0X{0:02X}".format(self.modify_bytes[k])
    return "{{{0}}}".format(",".join(values))