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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tcbdb.3

?? 高性能嵌入式數據庫在高并發的環境下使用最好是64位系統比較好
?? 3
?? 第 1 頁 / 共 3 頁
字號:
.TH "TCBDB" 3 "2008-06-18" "Man Page" "Tokyo Cabinet".SH NAMEtcbdb \- the B+ tree database API.SH DESCRIPTION.PPB+ tree database is a file containing a B+ tree and is handled with the B+ tree database API..PPTo use the B+ tree database API, include `\fBtcutil.h\fR', `\fBtcbdb.h\fR', and related standard header files.  Usually, write the following description near the front of a source file..PP.RS.br\fB#include <tcutil.h>\fR.br\fB#include <tcbdb.h>\fR.br\fB#include <stdlib.h>\fR.br\fB#include <time.h>\fR.br\fB#include <stdbool.h>\fR.br\fB#include <stdint.h>\fR.RE.PPObjects whose type is pointer to `\fBTCBDB\fR' are used to handle B+ tree databases.  A B+ tree database object is created with the function `\fBtcbdbnew\fR' and is deleted with the function `\fBtcbdbdel\fR'.  To avoid memory leak, it is important to delete every object when it is no longer in use..PPBefore operations to store or retrieve records, it is necessary to open a database file and connect the B+ tree database object to it.  The function `\fBtcbdbopen\fR' is used to open a database file and the function `\fBtcbdbclose\fR' is used to close the database file.  To avoid data missing or corruption, it is important to close every database file when it is no longer in use..SH API.PPThe function `tcbdberrmsg' is used in order to get the message string corresponding to an error code..PP.RS.br\fBconst char *tcbdberrmsg(int \fIecode\fB);\fR.RS`\fIecode\fR' specifies the error code..RE.RSThe return value is the message string of the error code..RE.RE.PPThe function `tcbdbnew' is used in order to create a B+ tree database object..PP.RS.br\fBTCBDB *tcbdbnew(void);\fR.RSThe return value is the new B+ tree database object..RE.RE.PPThe function `tcbdbdel' is used in order to delete a B+ tree database object..PP.RS.br\fBvoid tcbdbdel(TCBDB *\fIbdb\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object..RE.RSIf the database is not closed, it is closed implicitly.  Note that the deleted object and its derivatives can not be used anymore..RE.RE.PPThe function `tcbdbecode' is used in order to get the last happened error code of a B+ tree database object..PP.RS.br\fBint tcbdbecode(TCBDB *\fIbdb\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object..RE.RSThe return value is the last happened error code..RE.RSThe 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..RE.RE.PPThe function `tcbdbsetmutex' is used in order to set mutual exclusion control of a B+ tree database object for threading..PP.RS.br\fBbool tcbdbsetmutex(TCBDB *\fIbdb\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object which is not opened..RE.RSIf successful, the return value is true, else, it is false..RE.RSNote that the mutual exclusion control of the database should be set before the database is opened..RE.RE.PPThe function `tcbdbsetcmpfunc' is used in order to set the custom comparison function of a B+ tree database object..PP.RS.br\fBbool tcbdbsetcmpfunc(TCBDB *\fIbdb\fB, BDBCMP \fIcmp\fB, void *\fIcmpop\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object which is not opened..RE.RS`\fIcmp\fR' specifies the pointer to the custom comparison function..RE.RS`\fIcmpop\fR' specifies an arbitrary pointer to be given as a parameter of the comparison function.  If it is not needed, `NULL' can be specified..RE.RSIf successful, the return value is true, else, it is false..RE.RSThe default comparison function compares keys of two records by lexical order.  The functions `tcbdbcmplexical' (dafault), `tcbdbcmpdecimal', `tcbdbcmpint32', and `tcbdbcmpint64' 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..RE.RE.PPThe function `tcbdbtune' is used in order to set the tuning parameters of a B+ tree database object..PP.RS.br\fBbool tcbdbtune(TCBDB *\fIbdb\fB, int32_t \fIlmemb\fB, int32_t \fInmemb\fB, int64_t \fIbnum\fB, int8_t \fIapow\fB, int8_t \fIfpow\fB, uint8_t \fIopts\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object which is not opened..RE.RS`\fIlmemb\fR' 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..RE.RS`\fInmemb\fR' 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..RE.RS`\fIbnum\fR' 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 16381.  Suggested size of the bucket array is about from 1 to 4 times of the number of all pages to be stored..RE.RS`\fIapow\fR' 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..RE.RS`\fIfpow\fR' 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..RE.RS`\fIopts\fR' 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..RE.RSIf successful, the return value is true, else, it is false..RE.RSNote that the tuning parameters should be set before the database is opened..RE.RE.PPThe function `tcbdbsetcache' is used in order to set the caching parameters of a B+ tree database object..PP.RS.br\fBbool tcbdbsetcache(TCBDB *\fIbdb\fB, int32_t \fIlcnum\fB, int32_t \fIncnum\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object which is not opened..RE.RS`\fIlcnum\fR' 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..RE.RS`\fIncnum\fR' 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..RE.RSIf successful, the return value is true, else, it is false..RE.RSNote that the caching parameters should be set before the database is opened..RE.RE.PPThe function `tcbdbsetxmsiz' is used in order to set the size of the extra mapped memory of a B+ tree database object..PP.RS.br\fBbool tcbdbsetxmsiz(TCBDB *\fIbdb\fB, int64_t \fIxmsiz\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object which is not opened..RE.RS`\fIxmsiz\fR' 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..RE.RSIf successful, the return value is true, else, it is false..RE.RSNote that the mapping parameters should be set before the database is opened..RE.RE.PPThe function `tcbdbopen' is used in order to open a database file and connect a B+ tree database object..PP.RS.br\fBbool tcbdbopen(TCBDB *\fIbdb\fB, const char *\fIpath\fB, int \fIomode\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object which is not opened..RE.RS`\fIpath\fR' specifies the path of the database file..RE.RS`\fIomode\fR' 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.  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..RE.RSIf successful, the return value is true, else, it is false..RE.RE.PPThe function `tcbdbclose' is used in order to close a B+ tree database object..PP.RS.br\fBbool tcbdbclose(TCBDB *\fIbdb\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object..RE.RSIf successful, the return value is true, else, it is false..RE.RSUpdate 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..RE.RE.PPThe function `tcbdbput' is used in order to store a record into a B+ tree database object..PP.RS.br\fBbool tcbdbput(TCBDB *\fIbdb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkbuf\fR' specifies the pointer to the region of the key..RE.RS`\fIksiz\fR' specifies the size of the region of the key..RE.RS`\fIvbuf\fR' specifies the pointer to the region of the value..RE.RS`\fIvsiz\fR' specifies the size of the region of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf a record with the same key exists in the database, it is overwritten..RE.RE.PPThe function `tcbdbput2' is used in order to store a string record into a B+ tree database object..PP.RS.br\fBbool tcbdbput2(TCBDB *\fIbdb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkstr\fR' specifies the string of the key..RE.RS`\fIvstr\fR' specifies the string of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf a record with the same key exists in the database, it is overwritten..RE.RE.PPThe function `tcbdbputkeep' is used in order to store a new record into a B+ tree database object..PP.RS.br\fBbool tcbdbputkeep(TCBDB *\fIbdb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkbuf\fR' specifies the pointer to the region of the key..RE.RS`\fIksiz\fR' specifies the size of the region of the key..RE.RS`\fIvbuf\fR' specifies the pointer to the region of the value..RE.RS`\fIvsiz\fR' specifies the size of the region of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf a record with the same key exists in the database, this function has no effect..RE.RE.PPThe function `tcbdbputkeep2' is used in order to store a new string record into a B+ tree database object..PP.RS.br\fBbool tcbdbputkeep2(TCBDB *\fIbdb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkstr\fR' specifies the string of the key..RE.RS`\fIvstr\fR' specifies the string of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf a record with the same key exists in the database, this function has no effect..RE.RE.PPThe function `tcbdbputcat' is used in order to concatenate a value at the end of the existing record in a B+ tree database object..PP.RS.br\fBbool tcbdbputcat(TCBDB *\fIbdb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkbuf\fR' specifies the pointer to the region of the key..RE.RS`\fIksiz\fR' specifies the size of the region of the key..RE.RS`\fIvbuf\fR' specifies the pointer to the region of the value..RE.RS`\fIvsiz\fR' specifies the size of the region of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf there is no corresponding record, a new record is created..RE.RE.PPThe function `tcbdbputcat2' is used in order to concatenate a string value at the end of the existing record in a B+ tree database object..PP.RS.br\fBbool tcbdbputcat2(TCBDB *\fIbdb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkstr\fR' specifies the string of the key..RE.RS`\fIvstr\fR' specifies the string of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf there is no corresponding record, a new record is created..RE.RE.PPThe function `tcbdbputdup' is used in order to store a record into a B+ tree database object with allowing duplication of keys..PP.RS.br\fBbool tcbdbputdup(TCBDB *\fIbdb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkbuf\fR' specifies the pointer to the region of the key..RE.RS`\fIksiz\fR' specifies the size of the region of the key..RE.RS`\fIvbuf\fR' specifies the pointer to the region of the value..RE.RS`\fIvsiz\fR' specifies the size of the region of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf a record with the same key exists in the database, the new record is placed after the existing one..RE.RE.PPThe function `tcbdbputdup2' is used in order to store a string record into a B+ tree database object with allowing duplication of keys..PP.RS.br\fBbool tcbdbputdup2(TCBDB *\fIbdb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkstr\fR' specifies the string of the key..RE.RS`\fIvstr\fR' specifies the string of the value..RE.RSIf successful, the return value is true, else, it is false..RE.RSIf a record with the same key exists in the database, the new record is placed after the existing one..RE.RE.PPThe function `tcbdbputdup3' is used in order to store records into a B+ tree database object with allowing duplication of keys..PP.RS.br\fBbool tcbdbputdup3(TCBDB *\fIbdb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const TCLIST *\fIvals\fB);\fR.RS`\fIbdb\fR' specifies the B+ tree database object connected as a writer..RE.RS`\fIkbuf\fR' specifies the pointer to the region of the common key..RE.RS`\fIksiz\fR' specifies the size of the region of the common key..RE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99国内精品久久| 国产馆精品极品| 精品一区二区三区免费观看| 国产乱子伦一区二区三区国色天香| 91网站最新网址| 久久久久久久网| 午夜亚洲福利老司机| 国产91精品在线观看| 67194成人在线观看| 亚洲欧洲综合另类| 成人小视频在线观看| 日韩欧美不卡一区| 日韩不卡在线观看日韩不卡视频| 99久久99久久精品免费看蜜桃| 7777精品伊人久久久大香线蕉 | 成人精品一区二区三区四区| 69av一区二区三区| 丝袜国产日韩另类美女| 欧美日韩中文另类| 一区二区三区在线免费播放| 成人综合激情网| 久久久欧美精品sm网站| 久久 天天综合| 日韩一区二区视频在线观看| 亚洲福利一二三区| 欧美日韩视频在线第一区 | 91在线无精精品入口| 国产欧美精品区一区二区三区| 蜜桃视频在线观看一区| 制服丝袜av成人在线看| 日韩精品五月天| 欧美久久高跟鞋激| 日韩成人一级大片| 精品日产卡一卡二卡麻豆| 日韩电影在线一区二区| 日韩欧美一区在线| 紧缚奴在线一区二区三区| 2欧美一区二区三区在线观看视频| 美女尤物国产一区| 国产色产综合色产在线视频| 国产综合一区二区| 国产人成一区二区三区影院| 成年人午夜久久久| 亚洲啪啪综合av一区二区三区| 欧美在线高清视频| 日本亚洲三级在线| 精品国产一区二区三区久久影院| 黄网站免费久久| 国产精品美女久久久久aⅴ | 国产福利精品导航| 中文字幕二三区不卡| 99精品久久久久久| 亚洲高清免费在线| 精品黑人一区二区三区久久| 国产成人av网站| 亚洲欧美欧美一区二区三区| 欧美精选一区二区| 粉嫩aⅴ一区二区三区四区五区| 中文字幕一区二区视频| 欧美日韩在线不卡| 经典三级在线一区| 亚洲精品五月天| 日韩欧美一级二级三级| www.欧美日韩| 日本一道高清亚洲日美韩| 国产蜜臀av在线一区二区三区| 色婷婷亚洲综合| 蜜桃一区二区三区四区| 亚洲人精品午夜| 精品第一国产综合精品aⅴ| 91在线porny国产在线看| 日韩av中文字幕一区二区| 国产精品丝袜黑色高跟| 欧美顶级少妇做爰| jizzjizzjizz欧美| 美国十次综合导航| 亚洲精选在线视频| 日本一二三不卡| 91精品国产综合久久久久久漫画 | 久久激情综合网| 亚洲欧美综合另类在线卡通| 欧美一区二区三区四区久久| 96av麻豆蜜桃一区二区| 国产一区二区三区免费看| 亚洲成人av在线电影| 中文字幕免费观看一区| 日韩视频一区二区三区 | 成人动漫一区二区在线| 蜜桃av噜噜一区| 亚洲伊人色欲综合网| 欧美激情一二三区| 精品国产91乱码一区二区三区 | 成人一级黄色片| 麻豆精品新av中文字幕| 亚洲图片欧美一区| 日韩美女视频一区二区| 久久九九国产精品| 欧美电视剧免费全集观看| 欧美日韩在线三区| 欧美性感一区二区三区| 91网站视频在线观看| 国产99久久久久| 国产在线视频精品一区| 精品一区精品二区高清| 日韩avvvv在线播放| 午夜婷婷国产麻豆精品| 亚洲高清不卡在线观看| 亚洲资源中文字幕| 亚洲黄色免费电影| 免费视频最近日韩| 亚洲一区二区三区中文字幕在线 | 成人av影视在线观看| 精品午夜一区二区三区在线观看| 日韩黄色免费电影| 日韩不卡一区二区三区 | 99综合影院在线| caoporen国产精品视频| 成人伦理片在线| 99re这里都是精品| 日本高清不卡视频| 欧美日精品一区视频| 欧美三级三级三级| 欧美一区欧美二区| 2020国产精品久久精品美国| 久久久99精品免费观看不卡| 国产日韩欧美麻豆| 亚洲欧洲日韩av| 亚洲综合色噜噜狠狠| 天堂资源在线中文精品| 麻豆精品一区二区| 国产91在线观看| 色欧美日韩亚洲| 欧美麻豆精品久久久久久| 欧美电影免费观看高清完整版在 | 日本一区二区三区四区| 专区另类欧美日韩| 五月天激情综合| 国产一区二区三区黄视频| 成人avav影音| 欧美日韩成人一区| 久久精子c满五个校花| 亚洲欧美区自拍先锋| 蜜桃视频在线一区| 99视频精品全部免费在线| 欧美精选午夜久久久乱码6080| 欧美va亚洲va在线观看蝴蝶网| 国产欧美一区视频| 亚洲国产综合91精品麻豆 | 午夜激情一区二区三区| 国产中文字幕精品| 日本道精品一区二区三区 | 国产一区三区三区| 色妞www精品视频| 日韩一级二级三级精品视频| 国产精品久久久久三级| 五月激情综合网| 99riav久久精品riav| 日韩免费高清视频| 伊人色综合久久天天| 韩国av一区二区三区在线观看| a在线欧美一区| 日韩欧美在线观看一区二区三区| 亚洲三级在线看| 精品一区二区三区免费播放| 欧美午夜电影一区| 中文字幕精品在线不卡| 日欧美一区二区| 一本色道亚洲精品aⅴ| 久久久久国产精品人| 日本欧美一区二区三区乱码| 色吧成人激情小说| 中文字幕免费一区| 国产麻豆视频一区二区| 777久久久精品| 樱花影视一区二区| 成人精品视频一区二区三区| 欧美一区二区精品在线| 夜夜操天天操亚洲| 91亚洲精品久久久蜜桃网站| 久久综合色综合88| 人禽交欧美网站| 欧美三级电影网站| 一区二区三区资源| 99精品国产一区二区三区不卡| 国产欧美日韩精品a在线观看| 蜜桃视频在线观看一区| 91精品国产91综合久久蜜臀| 亚洲一区二区精品久久av| 色综合夜色一区| 亚洲婷婷在线视频| www.亚洲色图| 亚洲色图制服诱惑| 99精品久久只有精品| 亚洲视频图片小说| 97国产一区二区| 亚洲欧美自拍偷拍| aaa亚洲精品| 亚洲精品午夜久久久| 在线中文字幕不卡| 亚洲午夜久久久久久久久久久|