antirez / antirez/lua-cmsgpack

Question about the separator of cmsgpack data

Offen
#65 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
383
Forks
122
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.