亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tcbdb.h

?? Tokyo Cabinet的Tokyo Cabinet 是一個DBM的實現(xiàn)。這里的數(shù)據(jù)庫由一系列key-value對的記錄構(gòu)成。key和value都可以是任意長度的字節(jié)序列,既可以是二進(jìn)制也可以是字符
?? H
?? 第 1 頁 / 共 4 頁
字號:
/************************************************************************************************* * The B+ tree database API of Tokyo Cabinet *                                                      Copyright (C) 2006-2009 Mikio Hirabayashi * This file is part of Tokyo Cabinet. * Tokyo Cabinet 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 any later version.  Tokyo Cabinet 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 Tokyo * Cabinet; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA. *************************************************************************************************/#ifndef _TCBDB_H                         /* duplication check */#define _TCBDB_H#if defined(__cplusplus)#define __TCBDB_CLINKAGEBEGIN extern "C" {#define __TCBDB_CLINKAGEEND }#else#define __TCBDB_CLINKAGEBEGIN#define __TCBDB_CLINKAGEEND#endif__TCBDB_CLINKAGEBEGIN#include <stdlib.h>#include <stdbool.h>#include <stdint.h>#include <time.h>#include <limits.h>#include <math.h>#include <tcutil.h>#include <tchdb.h>/************************************************************************************************* * API *************************************************************************************************/typedef struct {                         /* type of structure for a B+ tree database */  void *mmtx;                            /* mutex for method */  void *cmtx;                            /* mutex for cache */  TCHDB *hdb;                            /* internal database object */  char *opaque;                          /* opaque buffer */  bool open;                             /* whether the internal database is opened */  bool wmode;                            /* whether to be writable */  uint32_t lmemb;                        /* number of members in each leaf */  uint32_t nmemb;                        /* number of members in each node */  uint8_t opts;                          /* options */  uint64_t root;                         /* ID number of the root page */  uint64_t first;                        /* ID number of the first leaf */  uint64_t last;                         /* ID number of the last leaf */  uint64_t lnum;                         /* number of leaves */  uint64_t nnum;                         /* number of nodes */  uint64_t rnum;                         /* number of records */  TCMAP *leafc;                          /* cache for leaves */  TCMAP *nodec;                          /* cache for nodes */  TCCMP cmp;                             /* pointer to the comparison function */  void *cmpop;                           /* opaque object for the comparison function */  uint32_t lcnum;                        /* maximum number of cached leaves */  uint32_t ncnum;                        /* maximum number of cached nodes */  uint32_t lsmax;                        /* maximum size of each leaf */  uint32_t lschk;                        /* counter for leaf size checking */  uint64_t capnum;                       /* capacity number of records */  uint64_t *hist;                        /* history array of visited nodes */  int hnum;                              /* number of element of the history array */  uint64_t hleaf;                        /* ID number of the leaf referred by the history */  uint64_t lleaf;                        /* ID number of the last visited leaf */  bool tran;                             /* whether in the transaction */  char *rbopaque;                        /* opaque for rollback */  uint64_t clock;                        /* logical clock */  int64_t cnt_saveleaf;                  /* tesing counter for leaf save times */  int64_t cnt_loadleaf;                  /* tesing counter for leaf load times */  int64_t cnt_killleaf;                  /* tesing counter for leaf kill times */  int64_t cnt_adjleafc;                  /* tesing counter for node cache adjust times */  int64_t cnt_savenode;                  /* tesing counter for node save times */  int64_t cnt_loadnode;                  /* tesing counter for node load times */  int64_t cnt_adjnodec;                  /* tesing counter for node cache adjust times */} TCBDB;enum {                                   /* enumeration for additional flags */  BDBFOPEN = HDBFOPEN,                   /* whether opened */  BDBFFATAL = HDBFFATAL                  /* whetehr with fatal error */};enum {                                   /* enumeration for tuning options */  BDBTLARGE = 1 << 0,                    /* use 64-bit bucket array */  BDBTDEFLATE = 1 << 1,                  /* compress each page with Deflate */  BDBTBZIP = 1 << 2,                     /* compress each record with BZIP2 */  BDBTTCBS = 1 << 3,                     /* compress each page with TCBS */  BDBTEXCODEC = 1 << 4                   /* compress each record with outer functions */};enum {                                   /* enumeration for open modes */  BDBOREADER = 1 << 0,                   /* open as a reader */  BDBOWRITER = 1 << 1,                   /* open as a writer */  BDBOCREAT = 1 << 2,                    /* writer creating */  BDBOTRUNC = 1 << 3,                    /* writer truncating */  BDBONOLCK = 1 << 4,                    /* open without locking */  BDBOLCKNB = 1 << 5,                    /* lock without blocking */  BDBOTSYNC = 1 << 6                     /* synchronize every transaction */};typedef struct {                         /* type of structure for a B+ tree cursor */  TCBDB *bdb;                            /* database object */  uint64_t clock;                        /* logical clock */  uint64_t id;                           /* ID number of the leaf */  int32_t kidx;                          /* number of the key */  int32_t vidx;                          /* number of the value */} BDBCUR;enum {                                   /* enumeration for cursor put mode */  BDBCPCURRENT,                          /* current */  BDBCPBEFORE,                           /* before */  BDBCPAFTER                             /* after */};/* Get the message string corresponding to an error code.   `ecode' specifies the error code.   The return value is the message string of the error code. */const char *tcbdberrmsg(int ecode);/* Create a B+ tree database object.   The return value is the new B+ tree database object. */TCBDB *tcbdbnew(void);/* Delete a B+ tree database object.   `bdb' specifies the B+ tree database object.   If the database is not closed, it is closed implicitly.  Note that the deleted object and its   derivatives can not be used anymore. */void tcbdbdel(TCBDB *bdb);/* Get the last happened error code of a B+ tree database object.   `bdb' specifies the B+ tree database object.   The return value is the last happened error code.   The following error codes are defined: `TCESUCCESS' for success, `TCETHREAD' for threading   error, `TCEINVALID' for invalid operation, `TCENOFILE' for file not found, `TCENOPERM' for no   permission, `TCEMETA' for invalid meta data, `TCERHEAD' for invalid record header, `TCEOPEN'   for open error, `TCECLOSE' for close error, `TCETRUNC' for trunc error, `TCESYNC' for sync   error, `TCESTAT' for stat error, `TCESEEK' for seek error, `TCEREAD' for read error,   `TCEWRITE' for write error, `TCEMMAP' for mmap error, `TCELOCK' for lock error, `TCEUNLINK'   for unlink error, `TCERENAME' for rename error, `TCEMKDIR' for mkdir error, `TCERMDIR' for   rmdir error, `TCEKEEP' for existing record, `TCENOREC' for no record found, and `TCEMISC' for   miscellaneous error. */int tcbdbecode(TCBDB *bdb);/* Set mutual exclusion control of a B+ tree database object for threading.   `bdb' specifies the B+ tree database object which is not opened.   If successful, the return value is true, else, it is false.   Note that the mutual exclusion control is needed if the object is shared by plural threads and   this function should should be called before the database is opened. */bool tcbdbsetmutex(TCBDB *bdb);/* Set the custom comparison function of a B+ tree database object.   `bdb' specifies the B+ tree database object which is not opened.   `cmp' specifies the pointer to the custom comparison function.  It receives five parameters.   The first parameter is the pointer to the region of one key.  The second parameter is the size   of the region of one key.  The third parameter is the pointer to the region of the other key.   The fourth parameter is the size of the region of the other key.  The fifth parameter is the   pointer to the optional opaque object.  It returns positive if the former is big, negative if   the latter is big, 0 if both are equivalent.   `cmpop' specifies an arbitrary pointer to be given as a parameter of the comparison function.   If it is not needed, `NULL' can be specified.   If successful, the return value is true, else, it is false.   The default comparison function compares keys of two records by lexical order.  The functions   `tctccmplexical' (dafault), `tctccmpdecimal', `tctccmpint32', and `tctccmpint64' are built-in.   Note that the comparison function should be set before the database is opened.  Moreover,   user-defined comparison functions should be set every time the database is being opened. */bool tcbdbsetcmpfunc(TCBDB *bdb, TCCMP cmp, void *cmpop);/* Set the tuning parameters of a B+ tree database object.   `bdb' specifies the B+ tree database object which is not opened.   `lmemb' specifies the number of members in each leaf page.  If it is not more than 0, the   default value is specified.  The default value is 128.   `nmemb' specifies the number of members in each non-leaf page.  If it is not more than 0, the   default value is specified.  The default value is 256.   `bnum' specifies the number of elements of the bucket array.  If it is not more than 0, the   default value is specified.  The default value is 32749.  Suggested size of the bucket array   is about from 1 to 4 times of the number of all pages to be stored.   `apow' specifies the size of record alignment by power of 2.  If it is negative, the default   value is specified.  The default value is 8 standing for 2^8=256.   `fpow' specifies the maximum number of elements of the free block pool by power of 2.  If it   is negative, the default value is specified.  The default value is 10 standing for 2^10=1024.   `opts' specifies options by bitwise-or: `BDBTLARGE' specifies that the size of the database   can be larger than 2GB by using 64-bit bucket array, `BDBTDEFLATE' specifies that each page   is compressed with Deflate encoding, `BDBTBZIP' specifies that each page is compressed with   BZIP2 encoding, `BDBTTCBS' specifies that each page is compressed with TCBS encoding.   If successful, the return value is true, else, it is false.   Note that the tuning parameters should be set before the database is opened. */bool tcbdbtune(TCBDB *bdb, int32_t lmemb, int32_t nmemb,               int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);/* Set the caching parameters of a B+ tree database object.   `bdb' specifies the B+ tree database object which is not opened.   `lcnum' specifies the maximum number of leaf nodes to be cached.  If it is not more than 0,   the default value is specified.  The default value is 1024.   `ncnum' specifies the maximum number of non-leaf nodes to be cached.  If it is not more than 0,   the default value is specified.  The default value is 512.   If successful, the return value is true, else, it is false.   Note that the caching parameters should be set before the database is opened. */bool tcbdbsetcache(TCBDB *bdb, int32_t lcnum, int32_t ncnum);/* Set the size of the extra mapped memory of a B+ tree database object.   `bdb' specifies the B+ tree database object which is not opened.   `xmsiz' specifies the size of the extra mapped memory.  If it is not more than 0, the extra   mapped memory is disabled.  It is disabled by default.   If successful, the return value is true, else, it is false.   Note that the mapping parameters should be set before the database is opened. */bool tcbdbsetxmsiz(TCBDB *bdb, int64_t xmsiz);/* Open a database file and connect a B+ tree database object.   `bdb' specifies the B+ tree database object which is not opened.   `path' specifies the path of the database file.   `omode' specifies the connection mode: `BDBOWRITER' as a writer, `BDBOREADER' as a reader.   If the mode is `BDBOWRITER', the following may be added by bitwise-or: `BDBOCREAT', which   means it creates a new database if not exist, `BDBOTRUNC', which means it creates a new   database regardless if one exists, `BDBOTSYNC', which means every transaction synchronizes   updated contents with the device.  Both of `BDBOREADER' and `BDBOWRITER' can be added to by   bitwise-or: `BDBONOLCK', which means it opens the database file without file locking, or   `BDBOLCKNB', which means locking is performed without blocking.   If successful, the return value is true, else, it is false. */bool tcbdbopen(TCBDB *bdb, const char *path, int omode);/* Close a B+ tree database object.   `bdb' specifies the B+ tree database object.   If successful, the return value is true, else, it is false.   Update of a database is assured to be written when the database is closed.  If a writer opens   a database but does not close it appropriately, the database will be broken. */bool tcbdbclose(TCBDB *bdb);/* Store a record into a B+ tree database object.   `bdb' specifies the B+ tree database object connected as a writer.   `kbuf' specifies the pointer to the region of the key.   `ksiz' specifies the size of the region of the key.   `vbuf' specifies the pointer to the region of the value.   `vsiz' specifies the size of the region of the value.   If successful, the return value is true, else, it is false.   If a record with the same key exists in the database, it is overwritten. */bool tcbdbput(TCBDB *bdb, const void *kbuf, int ksiz, const void *vbuf, int vsiz);/* Store a string record into a B+ tree database object.   `bdb' specifies the B+ tree database object connected as a writer.   `kstr' specifies the string of the key.   `vstr' specifies the string of the value.   If successful, the return value is true, else, it is false.   If a record with the same key exists in the database, it is overwritten. */bool tcbdbput2(TCBDB *bdb, const char *kstr, const char *vstr);/* Store a new record into a B+ tree database object.   `bdb' specifies the B+ tree database object connected as a writer.   `kbuf' specifies the pointer to the region of the key.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久综合| 亚洲免费观看高清完整版在线| 91蝌蚪porny| 7777精品伊人久久久大香线蕉 | 成人黄页在线观看| 日韩欧美亚洲国产另类| 日本免费新一区视频| 91精品国产综合久久久久久漫画| 亚洲一区二区欧美日韩| 在线综合视频播放| 美女视频免费一区| 国产婷婷一区二区| 91亚洲精品久久久蜜桃网站 | www.欧美亚洲| 亚洲激情第一区| 91精品久久久久久久91蜜桃| 免费在线看一区| 国产女人aaa级久久久级| 91麻豆视频网站| 亚洲成人动漫av| 久久久久国产精品麻豆ai换脸 | 国产一区在线精品| 亚洲视频一二三| 欧美精品久久99| 国产精品一二一区| 亚洲大片免费看| 国产三级一区二区| 欧美日韩三级在线| 成人性生交大片免费看视频在线| 亚洲精品少妇30p| 欧美精品一区二区三区在线播放| 成人久久久精品乱码一区二区三区| 亚洲激情第一区| 日韩欧美国产系列| 在线观看区一区二| 国产成人鲁色资源国产91色综 | 久久影院午夜论| 欧美群妇大交群中文字幕| 成人黄色免费短视频| 日本女人一区二区三区| 亚洲制服丝袜av| 亚洲免费大片在线观看| 国产网红主播福利一区二区| 欧美大片顶级少妇| 制服.丝袜.亚洲.另类.中文| 一本久久综合亚洲鲁鲁五月天 | 久久精品久久99精品久久| 有坂深雪av一区二区精品| 国产精品电影一区二区| 久久精品男人的天堂| 久久久久久一二三区| 久久人人97超碰com| 精品国偷自产国产一区| 精品成人一区二区三区四区| 欧美xxxxx裸体时装秀| 久久免费的精品国产v∧| 久久精品在这里| 国产精品欧美久久久久一区二区| 中文字幕高清一区| 亚洲欧美一区二区不卡| 亚洲一区二区三区小说| 首页国产欧美日韩丝袜| 日本视频在线一区| 久久99九九99精品| av在线综合网| 欧美亚洲国产一区二区三区va | 欧美日韩国产a| 欧美成人三级在线| 18成人在线观看| 全部av―极品视觉盛宴亚洲| 国产99精品国产| 欧美性感一区二区三区| 日韩免费看网站| 一区二区三区免费网站| 久久99精品一区二区三区| 972aa.com艺术欧美| 日韩视频一区二区三区| 国产精品毛片久久久久久久 | 国产精品久久久久永久免费观看 | 色综合久久九月婷婷色综合| 91精品国产91久久久久久一区二区 | 一区二区高清免费观看影视大全| 久久国产精品露脸对白| 欧美写真视频网站| 国产精品第13页| 国产精品一区二区在线观看网站| 日本精品免费观看高清观看| ww久久中文字幕| 日韩av电影免费观看高清完整版| av一区二区三区| 国产精品乱码人人做人人爱| 美女国产一区二区三区| 在线观看91av| 香蕉影视欧美成人| 欧美日韩免费高清一区色橹橹 | 日韩av一级片| 欧美猛男gaygay网站| 亚洲成在线观看| 欧美日韩和欧美的一区二区| 亚洲欧美日韩久久| 欧美性大战久久久久久久蜜臀| 亚洲美女淫视频| 欧美日本一道本| 久久se精品一区二区| 亚洲精品在线免费播放| 国产伦精品一区二区三区视频青涩| 欧美一区二区黄| 精品一区二区三区不卡 | 亚洲h在线观看| 日韩精品一区在线| 极品销魂美女一区二区三区| 国产亚洲污的网站| 99久久99久久精品免费看蜜桃| 综合久久给合久久狠狠狠97色| 欧美最猛性xxxxx直播| 亚洲一区中文在线| 26uuu久久天堂性欧美| 99视频在线观看一区三区| 亚洲一区影音先锋| 26uuu亚洲综合色欧美 | 91美女片黄在线| 麻豆视频观看网址久久| 中文字幕中文乱码欧美一区二区| 91一区二区三区在线播放| 爽好多水快深点欧美视频| 国产网站一区二区| 91精品在线观看入口| 99国产一区二区三精品乱码| 美女视频黄免费的久久| 一区二区三区**美女毛片| 久久久高清一区二区三区| 欧美日韩亚洲另类| 国产iv一区二区三区| 精品一二线国产| 午夜影院久久久| 亚洲女同一区二区| 国产精品丝袜91| 中文字幕国产一区二区| 久久综合色婷婷| 日韩一区二区视频| 欧美精品tushy高清| 欧美日韩一区二区欧美激情| av电影在线不卡| av不卡免费在线观看| 国产成人精品免费在线| 国产麻豆日韩欧美久久| 国内不卡的二区三区中文字幕| 毛片不卡一区二区| 视频一区二区三区在线| 日本在线不卡视频| 狠狠久久亚洲欧美| 久久精品久久久精品美女| 国产尤物一区二区| 成人动漫在线一区| 99久久国产综合精品麻豆| 91在线国产福利| 欧美午夜精品一区二区三区| 欧美日韩高清一区二区三区| 91精品国产乱| 国产蜜臀av在线一区二区三区| 日本一区二区三区国色天香 | 久久se精品一区精品二区| 国产精品自拍三区| 97se狠狠狠综合亚洲狠狠| 欧美性欧美巨大黑白大战| 日韩视频在线一区二区| 中文字幕不卡在线观看| 亚洲韩国精品一区| 国产一区二区中文字幕| 99这里都是精品| 日韩欧美一二区| 亚洲免费资源在线播放| 精一区二区三区| 色女孩综合影院| 国产偷国产偷精品高清尤物| 亚洲成人动漫一区| 99视频在线观看一区三区| 日韩一区二区免费电影| 一区二区三区 在线观看视频| 久久精品国产亚洲aⅴ| 欧美色男人天堂| 亚洲欧洲一区二区三区| 国产一区二区不卡在线| 欧美另类变人与禽xxxxx| 国产精品久久久久久久久动漫| 久久不见久久见免费视频7| 色综合中文字幕| 日韩理论在线观看| 成人午夜在线免费| 国产精品久久网站| 成人黄色在线网站| 中文字幕在线一区二区三区| 精品在线观看免费| 精品欧美黑人一区二区三区| 秋霞电影网一区二区| 91精品国产综合久久婷婷香蕉| 五月天亚洲婷婷| 69av一区二区三区| 日本aⅴ亚洲精品中文乱码| 欧美日韩日本视频|