lua-cmsgpack icon indicating copy to clipboard operation
lua-cmsgpack copied to clipboard

Question about the separator of cmsgpack data

Open ffbh123456 opened this issue 4 years ago • 0 comments

I want to store some lua table data in a file. I use cmsgpack.pack(table) to convert it into a binary string, and then write it into the file. But I encountered a separator problem. I tried to use '\n' as the separator at first, but I found that the binary string may also contain the separator '\n' , which made me unable to read the binary file correctly.

How should I store and use what delimiter to divide the data?

ffbh123456 avatar May 18 '21 10:05 ffbh123456