mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 15:23:52 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
15 lines
264 B
C++
15 lines
264 B
C++
#pragma once
|
|
|
|
#include "base/checked_cast.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace search_base
|
|
{
|
|
template <typename Sink>
|
|
uint32_t RelativePos(Sink & sink, uint64_t startPos)
|
|
{
|
|
return base::checked_cast<uint32_t>(sink.Pos() - startPos);
|
|
}
|
|
} // namespace search_base
|