antirez / antirez/lua-cmsgpack

Question about the separator of cmsgpack data

Đang mở
#65 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
383
Fork
122
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.