提交 93154cfb 编写于 作者: T tickduan

add taospack

上级 17d3392c
...@@ -4,3 +4,4 @@ PROJECT(TDengine) ...@@ -4,3 +4,4 @@ PROJECT(TDengine)
ADD_SUBDIRECTORY(shell) ADD_SUBDIRECTORY(shell)
ADD_SUBDIRECTORY(taosdemo) ADD_SUBDIRECTORY(taosdemo)
ADD_SUBDIRECTORY(taosdump) ADD_SUBDIRECTORY(taosdump)
ADD_SUBDIRECTORY(taospack)
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "os.h" #include "os.h"
#include "tscompression.h" #include "tscompression.h"
#include "tdataformat.h"
#define FT_CNT 8 #define FT_CNT 8
...@@ -188,7 +189,19 @@ int memTest(); ...@@ -188,7 +189,19 @@ int memTest();
// main // main
// //
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
printf("welcome to use taospack tools v1.1. \n"); printf("welcome to use taospack tools v1.1. sizeof(STColumn) = %lu\n", sizeof(STColumn));
FILE* fp = fopen("./a.out", "w+");
STColumn* pcol = malloc(sizeof(STColumn));
pcol->type = 1;
pcol->colId = 2;
pcol->bytes = 3;
pcol->offset = 4;
fwrite(pcol, 1, sizeof(STColumn), fp);
fwrite("aaa", 1, 3, fp);
fclose(fp);
printf(" write a.out ok.\n");
return 0;
if(argc == 3){ if(argc == 3){
char algo = 0; char algo = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册