Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
HPack::BitOStream Class Reference

#include <bitstreams_p.h>

+ Collaboration diagram for HPack::BitOStream:

Public Member Functions

 BitOStream (std::vector< uchar > &buffer)
 
void writeBits (uchar bits, quint8 bitLength)
 
void write (quint32 src)
 
void write (QByteArrayView src, bool compressed)
 
quint64 bitLength () const
 
quint64 byteLength () const
 
const ucharbegin () const
 
const ucharend () const
 
void clear ()
 

Detailed Description

Definition at line 34 of file bitstreams_p.h.

Constructor & Destructor Documentation

◆ BitOStream()

HPack::BitOStream::BitOStream ( std::vector< uchar > & buffer)

Definition at line 18 of file bitstreams.cpp.

Member Function Documentation

◆ begin()

const uchar * HPack::BitOStream::begin ( ) const

Definition at line 98 of file bitstreams.cpp.

◆ bitLength()

quint64 HPack::BitOStream::bitLength ( ) const

Definition at line 88 of file bitstreams.cpp.

Referenced by HPack::huffman_encode_string(), and writeBits().

+ Here is the caller graph for this function:

◆ byteLength()

quint64 HPack::BitOStream::byteLength ( ) const

Definition at line 93 of file bitstreams.cpp.

◆ clear()

void HPack::BitOStream::clear ( )

Definition at line 108 of file bitstreams.cpp.

◆ end()

const uchar * HPack::BitOStream::end ( ) const

Definition at line 103 of file bitstreams.cpp.

◆ write() [1/2]

void HPack::BitOStream::write ( QByteArrayView src,
bool compressed )

Definition at line 66 of file bitstreams.cpp.

References compressed, HPack::huffman_encode_string(), HPack::huffman_encoded_bit_length(), Q_ASSERT, write(), and writeBits().

+ Here is the call graph for this function:

◆ write() [2/2]

void HPack::BitOStream::write ( quint32 src)

Definition at line 41 of file bitstreams.cpp.

References Q_ASSERT, and writeBits().

Referenced by HPack::Encoder::encodeSizeUpdate(), and write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeBits()

void HPack::BitOStream::writeBits ( uchar bits,
quint8 bitLength )

Definition at line 25 of file bitstreams.cpp.

References bitLength(), and Q_ASSERT.

Referenced by HPack::huffman_encode_string(), write(), and write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: