co-maps/libs/search/base/text_index/utils.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
264 B
C++
Raw Normal View History

2025-11-22 13:58:55 +01:00
#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