def METHOD_NAME(self, value, _=None):
    value = value.encode()
    value_len = len(value)
    written = self.write_uint32(value_len)
    self.buffer.extend(value)
    written += value_len
    self.buffer.append(0)
    written += 1
    return written