KVIrc  4.9.2
DeveloperAPIs
Functions
KviMemory Namespace Reference

Functions

void * allocate (int size)
 COMPILE_MEMORY_PROFILE. More...
 
void copy (void *dst_ptr, const void *src_ptr, int len)
 Moves len bytes from src_ptr to dst_ptr. More...
 
void free (void *ptr)
 COMPILE_MEMORY_CHECKS. More...
 
void move (void *dst_ptr, const void *src_ptr, int len)
 COMPILE_MEMORY_PROFILE. More...
 
void * reallocate (void *ptr, int size)
 
void set (void *dst_ptr, char c, int len)
 Initializes len bytes of memory starting from dst_ptr to c. More...
 

Function Documentation

void* KviMemory::allocate ( int  size)
inline
void KviMemory::copy ( void *  dst_ptr,
const void *  src_ptr,
int  len 
)
inline
void KviMemory::free ( void *  ptr)
inline
void KviMemory::move ( void *  dst_ptr,
const void *  src_ptr,
int  len 
)
inline

COMPILE_MEMORY_PROFILE.

Moves len bytes from src_ptr to dst_ptr

Parameters
dst_ptrThe destination memory pointer
src_ptrThe source memory pointer
lenthe number of bytes to move
Returns
void *

Referenced by AddonManagementDialog::AddonManagementDialog(), KviDataBuffer::append(), KviCtcpPageDialog::center(), ChannelsJoinDialog::ChannelsJoinDialog(), CustomizeToolBarsDialog::CustomizeToolBarsDialog(), KviCString::cut(), KviCString::cutLeft(), KviIrcUserEntry::forgetAvatar(), DccChatThread::handleIncomingData(), DccVideoThread::handleIncomingData(), KviCString::hexDecode(), KviCString::hexEncodeWithTable(), KviCString::insert(), KviDataBuffer::KviDataBuffer(), KviIpcSentinel::KviIpcSentinel(), KviMainWindow::KviMainWindow(), KviConfigurationFile::load(), KviUserListView::nickChange(), KviCString::operator=(), OptionsDialog::OptionsDialog(), KviCString::prepend(), KviIrcLink::processData(), KviIrcSocket::proxyAuthUserPassV5(), KviIrcSocket::proxyLoginV4(), KviIrcSocket::proxySendTargetDataV5(), RegisteredUsersDialog::RegisteredUsersDialog(), KviDataBuffer::remove(), KviIrcConnection::sendData(), KviIrcSocket::sendRawData(), KviIrcUserEntry::setAvatar(), KviCString::setStr(), OptionsWidgetContainer::showEvent(), DccAcceptDialog::showEvent(), CustomizeToolBarsDialog::showEvent(), TipWindow::showEvent(), DccRenameDialog::showEvent(), RegistrationWizard::showEvent(), KviKvsCallbackTextInput::showEvent(), KviCString::stripLeft(), KviCString::stripLeftWhiteSpace(), KviCString::stripSpace(), ThemeManagementDialog::ThemeManagementDialog(), KviCString::trim(), and KviWindow::youAreUndocked().

void* KviMemory::reallocate ( void *  ptr,
int  size 
)
inline
void KviMemory::set ( void *  dst_ptr,
char  c,
int  len 
)
inline

Initializes len bytes of memory starting from dst_ptr to c.

Parameters
dst_ptrThe destination memory pointer
cThe character that will fill the memory
lenthe number of bytes to initialize
Returns
void *

Referenced by KviIrcViewToolWidget::filterLoad(), kvi_sendIpcMessage(), kvi_socket_create(), KviSockaddr::KviSockaddr(), and KviCString::padRight().