👍 MsgPackDecoder x 368,088 ops/sec ±0.15% (100 runs sampled) 👍 CborDecoder x 327,286 ops/sec ±0.15% (101 runs sampled) 👍 MsgPackDecoder.{findKey,findIndex}() x 1,815,090 ops/sec ±0.07% (99 runs sampled) 👍 MsgPackDecoder.find() x 1,797,098 ops/sec ±0.15% (98 r...
json_decoder.h fix compile warning 1年前 json_encoder.h fix compile warning 1年前 l1l2_expand.h fix compile error for clang in windows (#47) 12个月前 mysql.h fix compile warning 1年前 mysql_decoder.h fix compile warning 1年前
#if defined(X_PACK_SUPPORT_CXX0X) || defined (_GNU_SOURCE) #include "json_data.h" #endif #include "xpack.h" namespace xpack { class json { public: template <class T> static void decode(const std::string &data, T &val) { JsonDecoder de; de.decode(data, val);...
今天就来说一说,Golang 是如何读取YAML,JSON,INI等配置文件的。...struct { Enabled bool Path string } func main() { // 打开文件 file, _ := os.Open("conf.json...") // 关闭文件 defer file.Close() //NewDecoder创建一个从file读取并解码json对象的*Decoder,解码器有自己的缓冲,并可能...
3 changes: 2 additions & 1 deletion 3 src/runtime/include/sourcemeta/jsonbinpack/runtime_decoder.h Original file line numberDiff line numberDiff line change @@ -1,8 +1,9 @@ #ifndef SOURCEMETA_JSONBINPACK_RUNTIME_DECODER_H_ #define SOURCEMETA_JSONBINPACK_RUNTIME_DECODER_H_ #include ...
my_decoder.cpp mysql.cpp sharedptr.cpp sqlite.cpp union1.cpp xml.cpp xpack_out.cpp xtype.cpp xtype_advance.cpp yaml.cpp gtest rapidjson rapidxml .gitignore LICENSE README-bson.md README-en.md README.md bson.h bson_builder.h bson_decoder.h bson_encoder.h bson_type.h config.h exten...
yaml_decoder.h support yaml sqlite (#39) 2年前 yaml_encoder.h support yaml sqlite (#39) 2年前 Loading... README Apache-2.0 xpack 基本用法 容器支持 FLAG 别名 位域 继承 枚举 自定义编解码 union 数组 不定类型 第三方类和结构体 格式化缩进 XML数组 CDATA Qt支持 MySQL 重要说明 x...
基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作 Username for 'https://gitee.com': userName Password for 'https://userName@gitee.com': # 私人令牌 master 分支(1) 管理 管理 master webpack_demo / package-lock.json package-lock.json 219.05 KB ...
用这两个特性,可以实现一些比较灵活的编解码控制,比如这个例子实现了一个根据变量情况来编码的功能,如果Sub.type==1则encode seq1,否则encode seq2.__x_pack_decode和__x_pack_encode是XPACK宏给结构体添加的decode/encode函数,自定义编解码函数可以通过这些函数调用xpack默认的编解码功能。
yaml_decoder.h yaml_encoder.h README License xpack English 用于在C++结构体和json/xml/yaml/bson/mysql/sqlite之间互相转换 只有头文件, 无需编译库文件,所以也没有Makefile。 支持bson,依赖于libbson-1.0,需自行安装。未经充分测试,具体请参考README ...