chsvlib
chsv helper source code

◆ ListPushBackValueByValue()

EXTERN_C bool Chusov::ListPushBackValueByValue ( HCHSVLIST  hList,
const void *  lpVal,
std::size_t  nValueSize 
)
noexcept

Creates the last element of the list and copies data into its buffers.

Parameters
hListis a handle to the list.
lpValis a pointer to data to be inserted to the list.
nValueSizeis a size of the data in bytes.
Returns
true on success, false on failure.
Remarks
The list is not thread-safe.
The functions like ListPushBackValueByValue(), ListPushFrontValueByValue(), ListInsertValueAfterIterByValue(), ListInsertValueBeforeIterByValue() or ListIterSetValueByValue() perform per byte copying to the new element's internal buffers. This may not be applicable to the C++ objects.
Declared in chsvlist.h.