⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sumset.h

📁 Trolltech公司发布的图形界面操作系统。可在qt-embedded-2.3.10平台上编译为嵌入式图形界面操作系统。
💻 H
字号:
/************************************************************************ Copyright (C) 2000-2005 Trolltech AS and its licensors.** All rights reserved.**** This file is part of the Qtopia Environment.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/gpl/ for GPL licensing information.** See below for additional copyright and license information**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************//*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- * * librsync -- the library for network deltas * $Id: sumset.h,v 1.1 2001/09/16 17:20:32 lknoll Exp $ *  * Copyright (C) 1999, 2000, 2001 by Martin Pool <mbp@samba.org> * Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org> *  * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. *  * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *//* * TODO: These structures are not terribly useful.  Perhaps we need a * splay tree or something that will let us smoothly grow as data is * read in. *//** * \brief Description of the match described by a signature. */typedef struct rs_target {    unsigned short  t;    int             i;} rs_target_t;typedef struct rs_block_sig rs_block_sig_t;/* * This structure describes all the sums generated for an instance of * a file.  It incorporates some redundancy to make it easier to * search. */struct rs_signature {    rs_long_t       flength;	/* total file length */    int             count;      /* how many chunks */    int             remainder;	/* flength % block_length */    int             block_len;	/* block_length */    int             strong_sum_len;    rs_block_sig_t  *block_sigs; /* points to info for each chunk */    int             *tag_table;    rs_target_t     *targets;};/* * All blocks are the same length in the current algorithm except for * the last block which may be short. */struct rs_block_sig {    int             i;		/* index of this chunk */    rs_weak_sum_t   weak_sum;	/* simple checksum */    rs_strong_sum_t strong_sum;	/* checksum  */};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -