• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef HDR_TESTS_H
2 #define HDR_TESTS_H
3 
4 /* These are functions used in tests and are not intended for normal usage. */
5 
6 #include "hdr_histogram.h"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 int32_t counts_index_for(const struct hdr_histogram* h, int64_t value);
13 int hdr_encode_compressed(struct hdr_histogram* h, uint8_t** compressed_histogram, size_t* compressed_len);
14 int hdr_decode_compressed(uint8_t* buffer, size_t length, struct hdr_histogram** histogram);
15 void hdr_base64_decode_block(const char* input, uint8_t* output);
16 void hdr_base64_encode_block(const uint8_t* input, char* output);
17 
18 #ifdef __cplusplus
19 }
20 #endif
21 
22 #endif
23