chsvlib
chsv helper source code

◆ MapGetKeySizeFromIter()

EXTERN_C std:: size_t Chusov::MapGetKeySizeFromIter ( HCHSVMAPITERATOR  hMapIter)
noexcept

The function returns a length, in bytes, of the key of the specified element.

Parameters
[in]hMapIteris a handle to the iterator bound with the specified element.
Returns
The function returns a length, in bytes, of the key bound with the specified element. On failure the function returns (size_t) -1, use GetLastChsvError to get extended error information.
Remarks
The key itself can be retrieved by a separate call to the MapGetKeyFromIter function over the same iterator.
The complexity is \(O(1)\).
Declared in chsvmap.h.
See also
MapGetKeyFromIter;
MapGetDataFromIter;
MapGetDataSizeFromIter.