code: def write(self, client):
          
          assert(isinstance(self._bytearray, DB))
          assert(self.row_size >= 0)
  
          db_nr = self._bytearray.db_number
          offset = self.db_offset
          data = self.get_bytearray()[offset:offset+self.row_size]
          db_offset = self.db_offset
  
          # indicate start of write only area of row!
          if self.row_offset:
              data = data[self.row_offset:]
              db_offset += self.row_offset
  
          client.db_write(db_nr, db_offset, data)
docs: Write current data to db in plc