MCPcopy Create free account
hub / github.com/comaps/comaps / SaveOuter

Function SaveOuter

libs/coding/geometry_coding.hpp:218–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217template <class TSink>
218void SaveOuter(EncodeFunT fn, std::vector<m2::PointD> const & points, GeometryCodingParams const & params, TSink & sink)
219{
220 DeltasT deltas;
221 Encode(fn, points, params, deltas);
222
223 std::vector<char> buffer;
224 MemWriter<std::vector<char>> writer(buffer);
225 WriteVarUintArray(deltas, writer);
226
227 WriteBufferToSink(buffer, sink);
228}
229
230void const * LoadInner(DecodeFunT fn, void const * pBeg, size_t count, GeometryCodingParams const & params,
231 OutPointsT & points);

Callers 1

SaveOuterPathFunction · 0.85

Calls 3

WriteVarUintArrayFunction · 0.85
WriteBufferToSinkFunction · 0.85
EncodeFunction · 0.70

Tested by

no test coverage detected