(self, pos)
Write a record.
Write a record.
Write a record .
def put(self, pos):
        """Write a record."""
        self._set_record_pos(pos)
        self._locks.try_record_access(self._number, self._recpos+1, self._recpos+1, b'W')
        current_length = self.lof()
        with safe_io():
            if self._recpos > current_length:
                self._fhandle.seek(0, 2)
                numrecs = self._recpos - current_length
                self._fhandle.write(b'\0' * numrecs * self.reclen)
            self._fhandle.write(bytes(self._field_file.get_buffer()))
        self._recpos += 1
def put ( self , pos ) : self . _set_record_pos ( pos ) self . _locks . try_record_access ( self . _number , self . _recpos + 1 , self . _recpos + 1 , b'W' ) current_length = self . lof ( ) with safe_io ( ) : if self . _recpos > current_length : self . _fhandle . seek ( 0 , 2 ) numrecs = self . _recpos - current_length self . _fhandle . write ( b'\0' * numrecs * self . reclen ) self . _fhandle . write ( bytes ( self . _field_file . get_buffer ( ) ) ) self . _recpos += 1