Cinder-Encoding:SLIP和COBS编码的代码处理CinderBlock

时间:2024-05-19 09:13:02
【文件属性】:

文件名称:Cinder-Encoding:SLIP和COBS编码的代码处理CinderBlock

文件大小:5KB

文件格式:ZIP

更新时间:2024-05-19 09:13:02

C++

煤渣编码 简单的煤渣用于和编码/解码。 例子 const size_t size = 12 ; uint8_t data[size] = { 0x45 , 0x00 , 0x00 , 0x2C , 0x4C , 0x79 , 0x00 , 0x00 , 0x40 , 0x06 , 0x4F , 0x37 }; // COBS using ci::BufferRef auto buffer = Buffer::create(data, size); auto encodedBuffer = COBSEncode(buffer); auto decodedBuffer = COBSDecode(encodedBuffer); if (decodedBuffer-> getSize () != buffer->getSize()) { // :skull: } // SLIP using r


【文件预览】:
Cinder-Encoding-master
----.gitignore(529B)
----src()
--------Cinder-Encoding.cpp(5KB)
----LICENSE(1KB)
----README.md(1KB)
----include()
--------Cinder-Encoding.h(1KB)
----cinderblock.xml(485B)

网友评论