![]() |
KVIrc 5.2.6
Developer APIs
|
#include <KviDataBuffer.h>
Public Member Functions | |
void | addSize (int uSize) |
void | append (const KviDataBuffer &b) |
void | append (const unsigned char *data, int uSize) |
void | clear () |
unsigned char * | data () const |
int | find (const unsigned char *block, int uSize) |
int | find (unsigned char c) |
KviDataBuffer () | |
KviDataBuffer (int uSize, const unsigned char *data=nullptr) | |
void | remove (int uSize) |
void | resize (int uSize) |
int | size () const |
~KviDataBuffer () | |
Private Attributes | |
unsigned char * | m_pData |
int | m_uSize |
KviDataBuffer::KviDataBuffer | ( | int | uSize, |
const unsigned char * | data = nullptr ) |
References KviMemory::allocate(), data(), KVI_ASSERT, m_pData, m_uSize, and KviMemory::move().
Referenced by append().
KviDataBuffer::~KviDataBuffer | ( | ) |
References KviMemory::free(), KVI_ASSERT, m_pData, and m_uSize.
|
inline |
References m_uSize, and resize().
Referenced by DccVoiceAdpcmCodec::decode(), and DccVoiceAdpcmCodec::encode().
|
inline |
References append(), data(), KviDataBuffer(), and size().
Referenced by append().
void KviDataBuffer::append | ( | const unsigned char * | data, |
int | uSize ) |
References data(), m_pData, m_uSize, KviMemory::move(), and KviMemory::reallocate().
Referenced by DccVideoSJpegCodec::decode(), DccVoiceNullCodec::decode(), DccVoiceNullCodec::encode(), DccVideoSJpegCodec::encodeText(), and DccVideoSJpegCodec::encodeVideo().
|
inline |
|
inline |
References m_pData.
Referenced by KviOggTheoraDecoder::addData(), append(), append(), KviStatusBarUpdateIndicator::binaryDataReceived(), DccVideoSJpegCodec::decode(), DccVoiceAdpcmCodec::decode(), DccVoiceNullCodec::decode(), DccVoiceAdpcmCodec::encode(), DccVoiceNullCodec::encode(), DccVideoSJpegCodec::encodeText(), DccVideoTheoraCodec::encodeText(), DccVideoSJpegCodec::encodeVideo(), DccVideoTheoraCodec::encodeVideo(), KviDataBuffer(), KviIrcSocket::queue_removePrivateMessages(), KviIrcConnection::sendData(), KviIrcConnection::sendFmtData(), KviIrcSocket::sendRawData(), and KviHttpRequest::slotSocketReadDataReady().
int KviDataBuffer::find | ( | const unsigned char * | block, |
int | uSize ) |
int KviDataBuffer::find | ( | unsigned char | c | ) |
References e, m_pData, m_uSize, and p.
Referenced by DccVideoSJpegCodec::decode(), and KviHttpRequest::emitLines().
void KviDataBuffer::remove | ( | int | uSize | ) |
References KviMemory::free(), KVI_ASSERT, m_pData, m_uSize, KviMemory::move(), and KviMemory::reallocate().
Referenced by clear(), DccVideoSJpegCodec::decode(), DccVoiceAdpcmCodec::decode(), KviHttpRequest::emitLines(), and DccVoiceAdpcmCodec::encode().
void KviDataBuffer::resize | ( | int | uSize | ) |
References KviMemory::free(), KVI_ASSERT, m_pData, m_uSize, and KviMemory::reallocate().
Referenced by addSize(), DccVoiceNullCodec::decode(), DccVoiceNullCodec::encode(), KviIrcConnection::sendFmtData(), and KviHttpRequest::slotSocketReadDataReady().
|
inline |
References m_uSize.
Referenced by KviOggTheoraDecoder::addData(), append(), KviStatusBarUpdateIndicator::binaryDataReceived(), DccVideoSJpegCodec::decode(), DccVideoTheoraCodec::decode(), DccVoiceAdpcmCodec::decode(), DccVoiceNullCodec::decode(), DccVoiceAdpcmCodec::encode(), DccVoiceNullCodec::encode(), DccVideoSJpegCodec::encodeText(), DccVideoTheoraCodec::encodeText(), DccVideoSJpegCodec::encodeVideo(), DccVideoTheoraCodec::encodeVideo(), and KviIrcSocket::queue_removePrivateMessages().
|
private |
Referenced by append(), data(), find(), find(), KviDataBuffer(), KviDataBuffer(), remove(), resize(), and ~KviDataBuffer().
|
private |
Referenced by addSize(), append(), clear(), find(), find(), KviDataBuffer(), KviDataBuffer(), remove(), resize(), size(), and ~KviDataBuffer().