antirez / antirez/lua-cmsgpack

Question about the separator of cmsgpack data

オープン
#65 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
383
フォーク
122
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。