MySQL 8.0.40
Source Code Documentation
|
Auxiliary class to read or write a stream of bits to a memory location. More...
#include <rpl_record.h>
Public Member Functions | |
Bit_reader (const char *ptr=nullptr) | |
Bit_reader (const uchar *ptr) | |
bool | get () |
Read the next bit and move the read position one bit forward. More... | |
Public Member Functions inherited from Bit_stream_base< const char, const uchar > | |
Bit_stream_base (const char *ptr) | |
Construct a new Bit_stream (either reader or writer). More... | |
void | set_ptr (const char *ptr) |
Set the buffer pointer. More... | |
void | set_ptr (const uchar *ptr) |
Set the buffer pointer, using an unsigned datatype. More... | |
uint | tell () const |
void | dbug_print (const char *str) const |
Print all the bits before the current position to the debug trace. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Bit_stream_base< const char, const uchar > | |
const char * | m_ptr |
Pointer to beginning of buffer where bits are read or written. More... | |
uint | m_current_bit |
Current position in buffer. More... | |
Auxiliary class to read or write a stream of bits to a memory location.
Call get() to read a bit and move the position one bit forward.
|
inline |
|
inline |
|
inline |
Read the next bit and move the read position one bit forward.