MySQL 8.4.2
Source Code Documentation
|
Template base class of Bit_reader / Bit_writer. More...
#include <rpl_record.h>
Public Member Functions | |
Bit_stream_base (T *ptr) | |
Construct a new Bit_stream (either reader or writer). More... | |
void | set_ptr (T *ptr) |
Set the buffer pointer. More... | |
void | set_ptr (UT *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... | |
Protected Attributes | |
T * | m_ptr |
Pointer to beginning of buffer where bits are read or written. More... | |
uint | m_current_bit |
Current position in buffer. More... | |
Template base class of Bit_reader / Bit_writer.
|
inline |
Construct a new Bit_stream (either reader or writer).
ptr | Pointer where bits will be read or written. |
void Bit_stream_base< T, UT >::dbug_print | ( | const char * | str | ) | const |
Print all the bits before the current position to the debug trace.
str | Descriptive text that will be prefixed before the bit string. |
|
inline |
Set the buffer pointer.
ptr | Pointer where bits will be read or written. |
|
inline |
Set the buffer pointer, using an unsigned datatype.
ptr | Pointer where bits will be read or written. |
|
inline |
|
protected |
Current position in buffer.
|
protected |
Pointer to beginning of buffer where bits are read or written.