Coverage Report

Created: 2025-07-31 16:33

src/zserio/String.cpp
Line
Count
Source (jump to first uncovered line)
1
#include "zserio/SizeConvertUtil.h"
2
#include "zserio/String.h"
3
#include "zserio/Types.h"
4
5
namespace zserio
6
{
7
8
namespace detail
9
{
10
11
void validate(std::string_view, std::string_view)
12
18
{
13
    // always validate
14
18
}
15
16
BitSize bitSizeOf(std::string_view stringValue, BitSize)
17
24
{
18
24
    const VarSize stringSize = fromCheckedValue<VarSize>(convertSizeToUInt32(stringValue.size()));
19
20
    // the string consists of varsize for size followed by the UTF-8 encoded string
21
24
    return bitSizeOf(stringSize) + stringSize * 8;
22
24
}
23
24
BitSize initializeOffsets(std::string_view stringValue, BitSize bitPosition)
25
0
{
26
0
    return bitSizeOf(stringValue, bitPosition);
27
0
}
28
29
} // namespace detail
30
31
} // namespace zserio