ADS
Algorithms and Data Structures
Toggle main menu visibility
Loading...
Searching...
No Matches
StreamVByte.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/*--------------------------- File StreamVByte.h ---------------------------*/
3
/*--------------------------------------------------------------------------*/
54
/*--------------------------------------------------------------------------*/
55
/*----------------------------- DEFINITIONS --------------------------------*/
56
/*--------------------------------------------------------------------------*/
57
58
#ifndef __ADS_StreamVByte
59
#define __ADS_StreamVByte
60
/* self-identification: #endif constant */
61
62
/*--------------------------------------------------------------------------*/
63
/*------------------------------ INCLUDES ----------------------------------*/
64
/*--------------------------------------------------------------------------*/
65
66
#include "
ADS/Contract.h
"
67
#include "
ADS/Simd.h
"
68
69
#include <array>
70
#include <bit>
71
#include <cstddef>
72
#include <cstdint>
73
#include <span>
74
#include <utility>
75
#include <vector>
76
77
/*--------------------------------------------------------------------------*/
78
/*--------------------------- NAMESPACE ------------------------------------*/
79
/*--------------------------------------------------------------------------*/
80
81
namespace
ADS
82
{
83
104
[[nodiscard]]
inline
std::vector< std::uint8_t >
105
streamVByteEncode
( std::span< const std::uint32_t > x );
106
128
[[nodiscard]]
inline
std::vector< std::uint32_t >
129
streamVByteDecode
( std::span< const std::uint8_t > code , std::size_t n );
130
131
/*--------------------------------------------------------------------------*/
132
133
}
// end( namespace ADS )
134
135
/*--------------------------------------------------------------------------*/
136
/*-------------------------- IMPLEMENTATION --------------------------------*/
137
/*--------------------------------------------------------------------------*/
138
139
#include "ADS/compression/impl/StreamVByte.tpp"
140
141
/*--------------------------------------------------------------------------*/
142
143
#endif
/* StreamVByte.h included */
144
145
/*--------------------------------------------------------------------------*/
146
/*------------------------- End File StreamVByte.h -------------------------*/
147
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
Simd.h
The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY: the loops over arrays that a stru...
ADS::streamVByteDecode
std::vector< std::uint32_t > streamVByteDecode(std::span< const std::uint8_t > code, std::size_t n)
the integers of the Stream VByte code
ADS::streamVByteEncode
std::vector< std::uint8_t > streamVByteEncode(std::span< const std::uint32_t > x)
the Stream VByte code of : the control bytes, then the data
ADS
Definition
ADT.h:96
ADS
compression
StreamVByte.h
Generated by
1.17.0