| 77 | |
| 78 | template <typename T> |
| 79 | uint64_t SpanSizeInBytes(Util::Span<const T> data) |
| 80 | { |
| 81 | if constexpr (MILBlob::IsSubByteSized<T>::value) { |
| 82 | auto uint8Span = MILBlob::Util::CastFromBitSpan(data); |
| 83 | return SpanSizeInBytes(uint8Span); |
| 84 | } else { |
| 85 | return data.Size() * sizeof(T); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | template <typename T> |
| 90 | void WritePaddingBits(blob_metadata& metadata, size_t numElements) |
no test coverage detected