Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
victorstewart committed Jan 9, 2025
1 parent 037c846 commit e49ecab
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/bitsery/details/adapter_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,6 @@ struct InputAdapterBaseCRTP
swapDataBits(buf, count, ShouldSwap<typename Adapter::TConfig, T>{});
}

template<size_t SIZE, typename T>
T* readBuffer(T* buf, size_t count)
{
static_assert(std::is_integral<T>(), "");
static_assert(sizeof(T) == SIZE, "");
static_cast<Adapter*>(this)->readInternalBuffer(
reinterpret_cast<typename Adapter::TValue*>(buf), sizeof(T) * count);
swapDataBits(buf, count, ShouldSwap<typename Adapter::TConfig, T>{});
}

template<typename T>
void readBits(T&, size_t)
{
Expand Down

0 comments on commit e49ecab

Please sign in to comment.