chsvlib
chsv helper source code

◆ ListPushFrontValueByPtr()

EXTERN_C bool Chusov::ListPushFrontValueByPtr ( HCHSVLIST  hList,
void *  lpVal 
)
noexcept

Inserts a pointer to the beginning of the list without copying any pointed data.

Parameters
hListis a handle to the list.
lpValis a pointer to be inserted to the list.
Returns
true on success, false on failure.
Remarks
The list is not thread-safe.
The functions like ListPushBackValueByPtr(), ListPushFrontValueByPtr(), ListInsertValueBeforeIterByPtr(), ListInsertValueAfterIterByPtr() or ListIterSetValueByPtr() perform insertions of only pointers without physical copying of the pointed data. The data itself is ignored by the functions. The size of the data of the inserted elements will be zero, therefore for such elements zero length will be returned by the functions like ListGetDataSizeFromIter().
Declared in chsvlist.h.