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

📄 array.h

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 H
字号:
/*============================================================================*/#ifndef __array_h__#define __array_h__#include <gdk.h>#include <algebra.h>		/* to include BATmin and BATmax */#define new_int_bat(b,s) {(b)=BATnew(TYPE_void,TYPE_int,(size_t) (s)); \                         BATseqbase((b),0);                 }#define add_ints(b,n)    {(b)->batBuns->free+=(size_t)(n)*sizeof(int);\			                   (b)->batCount+=(size_t)n;\                         BATkey(BATmirror((b)),0);          \                         (b)->tsorted = 0;                  }#define get_int_ptr(b)   ((int*)(BUNfirst((b))))#define new_lng_bat(b,s) {(b)=BATnew(TYPE_void,TYPE_lng,(size_t) (s)); \                         BATseqbase((b),0);                 }#define add_lngs(b,n)    {(b)->batBuns->free+=(size_t)(n)*sizeof(lng);\			                   (b)->batCount+=(size_t)n;\                         BATkey(BATmirror((b)),0);          \                         (b)->tsorted = 0;                  }#define get_lng_ptr(b)   ((lng*)(BUNfirst((b))))/* The maximum number of dimensions that the print-function can handle... */#define MAX_ARRAY_DIM 16#endif/*============================================================================*/

⌨️ 快捷键说明

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