tinyber:适用于嵌入式小型系统的ASN.1 BER编解码器和编译器(CPython)

上传者: 42116713 | 上传时间: 2022-06-02 11:23:53 | 文件大小: 35KB | 文件类型: ZIP
TinyBER TinyBER是一种非常小的,有限的ASN.1 BER编解码器和代码生成器,旨在用于嵌入式设备(或任何受代码大小限制的地方)。 生成的代码使用固定大小的结构,并且不调用malloc或free。 安装 $ sudo python setup.py install 用法 TinyBER可以用于数据的临时编码和解码,但是它还带有有限的代码生成器。 缓冲液 一个简单的buf_t结构用于输入和输出: typedef struct { uint8_t * buffer; unsigned int pos; unsigned int size; } buf_t ; 编码方式 编码有点不寻常。 为了提高效率,可以将数据直接向后编码到输出缓冲区中。 由于asn.1结构倾向于反向积累(类型和长度在流中的值之前),因此对其进行编码的最有效方

文件下载

资源详情

[{"title":"( 38 个子文件 35KB ) tinyber:适用于嵌入式小型系统的ASN.1 BER编解码器和编译器(CPython)","children":[{"title":"tinyber-master","children":[{"title":"LICENSE.txt <span style='color:#111;'> 936B </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"tinyber_gen <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"dax <span style='color:#111;'> 268B </span>","children":null,"spread":false}],"spread":true},{"title":"requirements.txt <span style='color:#111;'> 30B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"run_tests.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"t0_python_test.py <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"t0_c_test.py <span style='color:#111;'> 934B </span>","children":null,"spread":false},{"title":"t0.py <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"t0_test.pyx <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"handwritten.c <span style='color:#111;'> 4.29KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 197B </span>","children":null,"spread":false},{"title":"tint.c <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"t0_gen_test.py <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"t0.asn <span style='color:#111;'> 955B </span>","children":null,"spread":false}],"spread":false},{"title":"setup.cfg <span style='color:#111;'> 78B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"utils.py <span style='color:#111;'> 894B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_choice.py <span style='color:#111;'> 770B </span>","children":null,"spread":false},{"title":"test_choice.asn1 <span style='color:#111;'> 273B </span>","children":null,"spread":false},{"title":"test_int_match.py <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"tinyber","children":[{"title":"_codec.pyx <span style='color:#111;'> 11.25KB </span>","children":null,"spread":false},{"title":"ber.py <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 22B </span>","children":null,"spread":false},{"title":"writer.py <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"c_nodes.py <span style='color:#111;'> 16.47KB </span>","children":null,"spread":false},{"title":"codec.py <span style='color:#111;'> 8.99KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"tinyber.c <span style='color:#111;'> 7.41KB </span>","children":null,"spread":false},{"title":"tinyber.h <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"walker.py <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"nodes.py <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"py_nodes.py <span style='color:#111;'> 8.55KB </span>","children":null,"spread":false},{"title":"gen.py <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 72B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明