|
|
static constexpr uint8_t | INTERNAL_TYPE_BITSIZE = sizeof(INTERNAL_TYPE) * 8 |
|
|
uint8_t * | stream |
|
INTERNAL_TYPE | current |
| | The stream we're writing our output to.
|
|
uint8_t | free_bits |
| | The current value we're writing into (zero-initialized).
|
|
idx_t | stream_index |
| | How many bits are still unwritten in 'current'.
|
|
idx_t | bits_written |
| | Index used to keep track of which index we're at in the stream.
|
|
|
class | BitStreamWriter |
|
class | EmptyWriter |
◆ OutputBitStream()
396824 }
idx_t stream_index
How many bits are still unwritten in 'current'.
Definition duckdb.cpp:397004
uint8_t free_bits
The current value we're writing into (zero-initialized).
Definition duckdb.cpp:397003
INTERNAL_TYPE current
The stream we're writing our output to.
Definition duckdb.cpp:397002
idx_t bits_written
Index used to keep track of which index we're at in the stream.
Definition duckdb.cpp:397006
◆ BytesWritten()
◆ BitsWritten()
◆ Flush()
396837 {
396838 if (
free_bits == INTERNAL_TYPE_BITSIZE) {
396839
396840 return;
396841 }
396843 }
void WriteToStream(INTERNAL_TYPE value)
Write a value of type INTERNAL_TYPE directly to the stream.
Definition duckdb.cpp:396969
◆ SetStream()
396845 {
396851 }
Definition duckdb.cpp:396816
◆ Stream()
◆ BitSize()
◆ WriteRemainder()
template<bool EMPTY>
template<class T>
396862 {
396863 if (
sizeof(
T) * 8 > 32) {
396866 }
396869 }
396872 }
396875 }
396876 }
396879 }
396882 }
396885 }
396888 }
396889 }
◆ WriteValue() [1/2]
template<bool EMPTY>
template<class T,
uint8_t VALUE_SIZE>
If we can write the entire value in one go
396892 {
396895 return;
396896 }
396899 WriteInCurrent<VALUE_SIZE>((INTERNAL_TYPE)
value);
396900 return;
396901 }
396904
396906
396908 }
396910
396911
396912
396914 WriteInCurrent((INTERNAL_TYPE)
value,
queue);
396916 }
396917 WriteRemainder<T>(
value,
i);
396918 }
◆ WriteValue() [2/2]
template<bool EMPTY>
template<class T>
If we can write the entire value in one go
396921 {
396924 return;
396925 }
396929 return;
396930 }
396933
396935
396937 }
396939
396940
396941
396943 WriteInCurrent((INTERNAL_TYPE)
value,
queue);
396945 }
396946 WriteRemainder<T>(
value,
i);
396947 }
◆ WriteBit()
396950 {
396951 auto &byte = GetCurrentByte();
396953 byte = byte | GetMask();
396954 }
396955 DecreaseFreeBits();
396956 }
◆ FitsInCurrent()
◆ GetMask()
◆ GetCurrentByte()
◆ WriteToStream() [1/2]
Write a value of type INTERNAL_TYPE directly to the stream.
◆ WriteToStream() [2/2]
◆ DecreaseFreeBits()
396977 {
396982 }
396983 }
◆ WriteInCurrent() [1/2]
◆ WriteInCurrent() [2/2]
template<bool EMPTY>
template<
uint8_t VALUE_SIZE = INTERNAL_TYPE_BITSIZE>
The documentation for this class was generated from the following file: