new utility functions: (de)serialize, as_cstring

This commit is contained in:
Zeno Rogue
2020-03-07 04:47:10 +01:00
parent 8cf90ef848
commit f84f51e972
2 changed files with 25 additions and 3 deletions
+1 -3
View File
@@ -992,9 +992,7 @@ int read_geom_args() {
else if(argis("-fwrite")) {
shstream hs;
hwrite_fpattern(hs, currfp);
string s;
for(char c: hs.s) s += format("\\x%02x", (unsigned char) c);
println(hlog, "current fieldpattern: ", s);
println(hlog, "current fieldpattern: ", as_cstring(hs.s));
}
else if(argis("-csp")) {
cheat();