chsvlib
chsv helper source code

◆ ListIterSetValueByValue()

EXTERN_C bool Chusov::ListIterSetValueByValue ( HCHSVLISTITERATOR  hListIterator,
const void *  pData,
std::size_t  nDataSize 
)
noexcept

Replaces data of an element bound with the specified iterator by contents of a pointer with per byte copying operation.

Parameters
hListIteratoris a handle to the iterator bound with an element with data to be replaced.
pDatais a pointer to data to replace the old value of the element.
nDataSizeis a byte size of the data to replace the old value of the element.
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.
See also
ListBegin();
ListEnd();
ListIterPrev();
ListIterNext().