-
Notifications
You must be signed in to change notification settings - Fork 2
Vars_MoveNext
anatol edited this page Jul 13, 2021
·
1 revision
uint8_t Vars_MoveNext(uint32_t iSlot , void* pKey , uint32_t& nKey , void* pVal , uint32_t& nVal , uint8_t nRepeat);Reads the next variable specified by iSlot
-
iSlot: enumeration slot returned by Vars_Enum -
pKey: pointer to the key buffer -
nKey: the size of the key buffer -
pVal: pointer to the value buffer -
nVal: the size of the value buffer -
nRepeat: 1 - don't move read current variable again, 0 - read next variable
- 1 if successful
- 0 otherwise
- the slot number should be obtained with Vars_Enum function
- this function copies
nKeybytes topKeyand then overridesnKeywith exact size of the key - this function copies
nValbytes topValand then overridesnValwith exact size of the value