Coverage Report

Created: 2020-02-14 15:38

/src/botan/src/lib/base/buf_comp.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
* (C) 2019 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6
7
#include <botan/buf_comp.h>
8
#include <botan/loadstor.h>
9
10
namespace Botan {
11
12
void Buffered_Computation::update_be(uint16_t val)
13
0
   {
14
0
   uint8_t inb[sizeof(val)];
15
0
   store_be(val, inb);
16
0
   add_data(inb, sizeof(inb));
17
0
   }
18
19
void Buffered_Computation::update_be(uint32_t val)
20
310
   {
21
310
   uint8_t inb[sizeof(val)];
22
310
   store_be(val, inb);
23
310
   add_data(inb, sizeof(inb));
24
310
   }
25
26
void Buffered_Computation::update_be(uint64_t val)
27
13.3k
   {
28
13.3k
   uint8_t inb[sizeof(val)];
29
13.3k
   store_be(val, inb);
30
13.3k
   add_data(inb, sizeof(inb));
31
13.3k
   }
32
33
void Buffered_Computation::update_le(uint16_t val)
34
0
   {
35
0
   uint8_t inb[sizeof(val)];
36
0
   store_le(val, inb);
37
0
   add_data(inb, sizeof(inb));
38
0
   }
39
40
void Buffered_Computation::update_le(uint32_t val)
41
0
   {
42
0
   uint8_t inb[sizeof(val)];
43
0
   store_le(val, inb);
44
0
   add_data(inb, sizeof(inb));
45
0
   }
46
47
void Buffered_Computation::update_le(uint64_t val)
48
0
   {
49
0
   uint8_t inb[sizeof(val)];
50
0
   store_le(val, inb);
51
0
   add_data(inb, sizeof(inb));
52
0
   }
53
54
}