Pull the writing of the serialized feature out to the callers

This commit is contained in:
Erica Fischer
2023-01-25 14:41:22 -08:00
parent 5806be8a5b
commit 12e3af018b
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ struct serial_feature {
bool dropped = false;
};
void serialize_feature(FILE *geomfile, serial_feature *sf, std::atomic<long long> *geompos, const char *fname, long long wx, long long wy);
std::string serialize_feature(serial_feature *sf, long long wx, long long wy);
serial_feature deserialize_feature(FILE *geoms, std::atomic<long long> *geompos_in, unsigned z, unsigned tx, unsigned ty, unsigned *initial_x, unsigned *initial_y);
struct reader {