MessagePrinter (Fixes #2)
All checks were successful
Linux arm64 / Build (push) Successful in 15s

This commit is contained in:
2025-03-04 12:01:15 +01:00
parent fa6ba74068
commit e8367cd91c
8 changed files with 149 additions and 15 deletions

View File

@@ -81,7 +81,7 @@ class MessageImplFieldsReadBase : public TBase {
}
// reading field in bitfield
template <typename TFieldType, typename TField, int IAlignment>
template <typename TFieldType, typename TField, std::size_t IAlignment>
void ReadField(Field<TField, IAlignment>& field, TFieldType data, std::size_t offset) {
static constexpr std::size_t TotalBitCount = sizeof(TFieldType) * 8;
// we suppose that the first element is at the highest bits
@@ -118,7 +118,7 @@ class MessageImplFieldsWriteBase : public TBase {
}
// writing field in bitfield
template <typename TFieldType, typename TField, int IAlignment>
template <typename TFieldType, typename TField, std::size_t IAlignment>
void WriteField(const Field<TField, IAlignment>& field, TFieldType& data, std::size_t offset) const {
static constexpr std::size_t TotalBitCount = sizeof(TFieldType) * 8;
// we suppose that the first element is at the highest bits